diff options
author | Volker Lendecke <vl@samba.org> | 2018-07-30 13:00:22 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-08-17 18:25:08 +0200 |
commit | 22be863ba3ad2c9269b0154f7540300c37fb1ff0 (patch) | |
tree | 34bfba477b3f158e50d8e46eb9ee6e62b6f1e323 /source3 | |
parent | 0d38e9e84831759ebcd13b40bfe4d70f127b724d (diff) | |
download | samba-22be863ba3ad2c9269b0154f7540300c37fb1ff0.tar.gz |
smbd: Fix a few DEBUG statements
%u is not necessarily correct for uint32_t, avoid casts
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/locking/locking.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 208f7e2081d..b2681208cb8 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -739,8 +739,10 @@ bool share_mode_stale_pid(struct share_mode_data *d, uint32_t idx) struct share_mode_entry *e; if (idx > d->num_share_modes) { - DEBUG(1, ("Asking for index %u, only %u around\n", - idx, (unsigned)d->num_share_modes)); + DBG_WARNING("Asking for index %"PRIu32", " + "only %"PRIu32" around\n", + idx, + d->num_share_modes); return false; } e = &d->share_modes[idx]; @@ -751,14 +753,18 @@ bool share_mode_stale_pid(struct share_mode_data *d, uint32_t idx) return true; } if (serverid_exists(&e->pid)) { - DEBUG(10, ("PID %s (index %u out of %u) still exists\n", - server_id_str_buf(e->pid, &tmp), idx, - (unsigned)d->num_share_modes)); + DBG_DEBUG("PID %s (index %"PRIu32" out of %"PRIu32") " + "still exists\n", + server_id_str_buf(e->pid, &tmp), + idx, + d->num_share_modes); return false; } - DEBUG(10, ("PID %s (index %u out of %u) does not exist anymore\n", - server_id_str_buf(e->pid, &tmp), idx, - (unsigned)d->num_share_modes)); + DBG_DEBUG("PID %s (index %"PRIu32" out of %"PRIu32") " + "does not exist anymore\n", + server_id_str_buf(e->pid, &tmp), + idx, + d->num_share_modes); e->stale = true; |