]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Fix DBG typo in find_delete_on_close_token()
authorVolker Lendecke <vl@samba.org>
Tue, 3 Sep 2019 14:40:00 +0000 (16:40 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Sep 2019 23:14:31 +0000 (23:14 +0000)
The routine isn't called find__delete_on_close_token. Also avoid
casts.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c

index 5026cdbe58d21e2c3775cdb6decfbeff384489e0..72235113fbb981737a57fa64928e730527f047f3 100644 (file)
@@ -1124,14 +1124,13 @@ static struct delete_token *find_delete_on_close_token(
 {
        uint32_t i;
 
-       DEBUG(10, ("find_delete_on_close_token: name_hash = 0x%x\n",
-                  (unsigned int)name_hash));
+       DBG_DEBUG("name_hash = 0x%"PRIx32"\n", name_hash);
 
        for (i=0; i<d->num_delete_tokens; i++) {
                struct delete_token *dt = &d->delete_tokens[i];
 
-               DEBUG(10, ("find__delete_on_close_token: dt->name_hash = 0x%x\n",
-                          (unsigned int)dt->name_hash ));
+               DBG_DEBUG("dt->name_hash = 0x%"PRIx32"\n",
+                         dt->name_hash);
                if (dt->name_hash == name_hash) {
                        return dt;
                }