1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s3:lib: Use portable format specifiers

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-09 10:01:33 +12:00 committed by Andrew Bartlett
parent 44df47712a
commit c68b8cf17c

View File

@ -383,13 +383,13 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
DEBUG (3, ("Parsed output of get_quota, ...\n")); DEBUG (3, ("Parsed output of get_quota, ...\n"));
DEBUGADD (5,( DEBUGADD (5,(
"qflags:%u curblocks:%llu softlimit:%llu hardlimit:%llu\n" "qflags:%"PRIu32" curblocks:%"PRIu64" softlimit:%"PRIu64" hardlimit:%"PRIu64"\n"
"curinodes:%llu isoftlimit:%llu ihardlimit:%llu bsize:%llu\n", "curinodes:%"PRIu64" isoftlimit:%"PRIu64" ihardlimit:%"PRIu64" bsize:%"PRIu64"\n",
dp->qflags,(long long unsigned)dp->curblocks, dp->qflags,dp->curblocks,
(long long unsigned)dp->softlimit,(long long unsigned)dp->hardlimit, dp->softlimit,dp->hardlimit,
(long long unsigned)dp->curinodes, dp->curinodes,
(long long unsigned)dp->isoftlimit,(long long unsigned)dp->ihardlimit, dp->isoftlimit,dp->ihardlimit,
(long long unsigned)dp->bsize)); dp->bsize));
return 0; return 0;
} }
@ -439,15 +439,15 @@ static int command_set_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
str_list_add_printf(&argl, "%d", _id); str_list_add_printf(&argl, "%d", _id);
str_list_add_printf(&argl, "%u", dp->qflags); str_list_add_printf(&argl, "%u", dp->qflags);
str_list_add_printf( str_list_add_printf(
&argl, "%llu", (long long unsigned)dp->softlimit); &argl, "%"PRIu64, dp->softlimit);
str_list_add_printf( str_list_add_printf(
&argl, "%llu", (long long unsigned)dp->hardlimit); &argl, "%"PRIu64, dp->hardlimit);
str_list_add_printf( str_list_add_printf(
&argl, "%llu", (long long unsigned)dp->isoftlimit); &argl, "%"PRIu64, dp->isoftlimit);
str_list_add_printf( str_list_add_printf(
&argl, "%llu", (long long unsigned)dp->ihardlimit); &argl, "%"PRIu64, dp->ihardlimit);
str_list_add_printf( str_list_add_printf(
&argl, "%llu", (long long unsigned)dp->bsize); &argl, "%"PRIu64, dp->bsize);
if (argl == NULL) { if (argl == NULL) {
return -1; return -1;
} }