mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
lib/util: Fix format strings and argument data types
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12168 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Aug 24 05:32:15 CEST 2016 on sn-devel-144 (cherry picked from commit 04126d54d5430c5e2fdbbfea58d76b253b81a407)
This commit is contained in:
parent
6275a94bc7
commit
ca7fa0c854
@ -146,18 +146,18 @@ static void talloc_report_str_helper(const void *ptr, int depth, int max_depth,
|
||||
state->s = talloc_asprintf_append_largebuf(
|
||||
state->s, &state->str_len,
|
||||
"%*s%-30s contains %6lu bytes in %3lu blocks "
|
||||
"(ref %d): %*s\n", depth*4, "", name,
|
||||
"(ref %zu): %*s\n", depth*4, "", name,
|
||||
(unsigned long)talloc_total_size(ptr),
|
||||
(unsigned long)talloc_total_blocks(ptr),
|
||||
talloc_reference_count(ptr),
|
||||
MIN(50, talloc_get_size(ptr)),
|
||||
(int)MIN(50, talloc_get_size(ptr)),
|
||||
(const char *)ptr);
|
||||
return;
|
||||
}
|
||||
|
||||
state->s = talloc_asprintf_append_largebuf(
|
||||
state->s, &state->str_len,
|
||||
"%*s%-30s contains %6lu bytes in %3lu blocks (ref %d) %p\n",
|
||||
"%*s%-30s contains %6lu bytes in %3lu blocks (ref %zu) %p\n",
|
||||
depth*4, "", name,
|
||||
(unsigned long)talloc_total_size(ptr),
|
||||
(unsigned long)talloc_total_blocks(ptr),
|
||||
|
Loading…
x
Reference in New Issue
Block a user