DBG_F
DBG_F(2, (stdout, "%c\n", buf[i]));
DBG_F(2, (stderr, "open on %s failed\n", ap_id));
DBG_F(2, (stderr, "open on %s failed\n", ap_id));
DBG_F(2, (stderr, "fstat on %s failed\n", ap_id));
DBG_F(2, (stdout, "%c\n", buf[i]));