diff options
author | Ralph Boehme <rb@sernet.de> | 2014-06-01 15:16:16 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-06-13 13:22:18 +0200 |
commit | 3defbe273459262f333cca91e90a0941a812df1a (patch) | |
tree | 4737099ca5071ec0bb604928b7b78b72ab6478cf /source3/utils/status.c | |
parent | 00573880e5f0362c3c442e82501bb0efe731ce7b (diff) | |
download | samba-3defbe273459262f333cca91e90a0941a812df1a.tar.gz samba-3defbe273459262f333cca91e90a0941a812df1a.tar.xz samba-3defbe273459262f333cca91e90a0941a812df1a.zip |
locking: use correct conversion specifier for printing variables
Fix several occurences of using printf conversion to fload when
printing offset and count variables in locking debug messages and
smbstatus.
Conversion to float may lead to wrong results with very large values.
Signed-off-by: Ralph Boehme <rb@sernet.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils/status.c')
-rw-r--r-- | source3/utils/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index 61a450e977..7bbcea5637 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -240,10 +240,10 @@ static void print_brl(struct file_id id, } } - d_printf("%-10s %-15s %-4s %-9.0f %-9.0f %-24s %-24s\n", + d_printf("%-10s %-15s %-4s %-9jd %-9jd %-24s %-24s\n", procid_str_static(&pid), file_id_string_tos(&id), desc, - (double)start, (double)size, + (intmax_t)start, (intmax_t)size, sharepath, fname); TALLOC_FREE(fname); |