BUG: debug output uses signed integer for length field
authorfolkert <folkert@vanheusden.com>
Tue, 5 Mar 2013 09:19:39 +0000 (10:19 +0100)
committerWouter Verhelst <w@uter.be>
Wed, 6 Mar 2013 12:09:57 +0000 (13:09 +0100)
Replaced %d by %u.

nbd-server.c

index feb959e64aaee391b3e2e96008cf9ada9a9aed91..f1f48bd7304fc3910a550ce94a22778c2d0c3198 100644 (file)
@@ -1754,9 +1754,9 @@ int mainloop(CLIENT *client) {
                command = request.type & NBD_CMD_MASK_COMMAND;
                len = ntohl(request.len);
 
-               DEBUG("%s from %llu (%llu) len %d, ", getcommandname(command),
+               DEBUG("%s from %llu (%llu) len %u, ", getcommandname(command),
                                (unsigned long long)request.from,
-                               (unsigned long long)request.from / 512, (unsigned int)len);
+                               (unsigned long long)request.from / 512, len);
 
                if (request.magic != htonl(NBD_REQUEST_MAGIC))
                        err("Not enough magic.");