TALLOC_FREE(lines);
lines = NULL;
- DEBUG (3, ("Parsed output of get_quota, ...\n"));
-
- DEBUGADD (5,(
- "qflags:%"PRIu32" curblocks:%"PRIu64" softlimit:%"PRIu64" hardlimit:%"PRIu64"\n"
- "curinodes:%"PRIu64" isoftlimit:%"PRIu64" ihardlimit:%"PRIu64" bsize:%"PRIu64"\n",
- dp->qflags,dp->curblocks,
- dp->softlimit,dp->hardlimit,
- dp->curinodes,
- dp->isoftlimit,dp->ihardlimit,
- dp->bsize));
+ DBG_INFO("Parsed output of get_quota, ...\n"
+ "qflags:%" PRIu32 " curblocks:%" PRIu64
+ " softlimit:%" PRIu64 " hardlimit:%" PRIu64
+ "\n"
+ "curinodes:%" PRIu64 " isoftlimit:%" PRIu64
+ " ihardlimit:%" PRIu64 " bsize:%" PRIu64 "\n",
+ dp->qflags,
+ dp->curblocks,
+ dp->softlimit,
+ dp->hardlimit,
+ dp->curinodes,
+ dp->isoftlimit,
+ dp->ihardlimit,
+ dp->bsize);
return 0;
}
if (lines != NULL) {
char *line = lines[0];
- DEBUG (3, ("Read input from dfree, \"%s\"\n", line));
+ DBG_NOTICE("Read input from dfree, \"%s\"\n", line);
*dsize = STR_TO_SMB_BIG_UINT(line, &p);
while (p && *p && isspace(*p))
else
*bsize = 1024;
TALLOC_FREE(lines);
- DEBUG (3, ("Parsed output of dfree, dsize=%u, dfree=%u, bsize=%u\n",
- (unsigned int)*dsize, (unsigned int)*dfree, (unsigned int)*bsize));
+
+ DBG_NOTICE("Parsed output of dfree, dsize=%"PRIu64", "
+ "dfree=%"PRIu64", bsize=%"PRIu64"\n",
+ *dsize, *dfree, *bsize);
if (!*dsize)
*dsize = 2048;
/* FIXME : Any reason for this assumption ? */
if (*bsize < 256) {
- DEBUG(5,("disk_free:Warning: bsize == %d < 256 . Changing to assumed correct bsize = 512\n",(int)*bsize));
+ DBG_INFO("Warning: bsize == %"PRIu64" < 256 . "
+ "Changing to assumed correct bsize = 512\n",
+ *bsize);
*bsize = 512;
}
if (ENCRYPTION_REQUIRED(conn) && !req->encrypted) {
if (info_level != SMB_QUERY_CIFS_UNIX_INFO) {
- DEBUG(0,("call_trans2qfsinfo: encryption required "
- "and info level 0x%x sent.\n",
- (unsigned int)info_level));
+ DBG_WARNING("encryption required "
+ "and info level 0x%" PRIx16 " sent.\n",
+ info_level);
reply_nterror(req, NT_STATUS_ACCESS_DENIED);
return;
}
}
- DEBUG(3,("call_trans2qfsinfo: level = %d\n", info_level));
+ DBG_NOTICE("level = %" PRIu16 "\n", info_level);
status = smbd_do_qfsinfo(req->xconn, conn, req,
info_level,
send_trans2_replies(conn, req, NT_STATUS_OK, params, 0, *ppdata, data_len,
max_data_bytes);
- DEBUG( 4, ( "%s info_level = %d\n",
- smb_fn_name(req->cmd), info_level) );
+ DBG_NOTICE("%s info_level = %" PRIu16 "\n",
+ smb_fn_name(req->cmd),
+ info_level);
return;
}