]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix a few debug outputs that should be unsigned
authorKern Sibbald <kern@sibbald.com>
Fri, 1 Jan 2016 08:21:29 +0000 (09:21 +0100)
committerKern Sibbald <kern@sibbald.com>
Fri, 1 Jan 2016 08:21:38 +0000 (09:21 +0100)
bacula/src/stored/block.c
bacula/src/stored/label.c

index 75ec5bfba71d40e228a9c3c0f2fc3ed0a5343d18..b74027bebc75dd77cfc7de20e358dd2aec8629a8 100644 (file)
@@ -230,7 +230,7 @@ bool DCR::write_block_to_dev()
    if (debug_block_checksum) {
       uint32_t achecksum = ser_block_header(block, dev->do_checksum());
       if (checksum != achecksum) {
-         Jmsg2(jcr, M_ERROR, 0, _("Block checksum changed during write: before=%ud after=%ud\n"),
+         Jmsg2(jcr, M_ERROR, 0, _("Block checksum changed during write: before=%u after=%u\n"),
             checksum, achecksum);
          dump_block(block, "with checksum error");
       }
@@ -314,7 +314,7 @@ bool DCR::write_block_to_dev()
       uint64_t addr = dev->file_addr + wlen - 1;
       if (dcr->EndFile == (uint32_t)(addr >> 32) &&
           (uint32_t)addr < dcr->EndBlock) {
-         Pmsg4(000, "Possible incorrect EndBlock oldEndBlock=%d newEndBlock=%d oldEndFile=%d newEndFile=%d\n",
+         Pmsg4(000, "Possible incorrect EndBlock oldEndBlock=%u newEndBlock=%u oldEndFile=%u newEndFile=%u\n",
             dcr->EndBlock, (uint32_t)addr, dcr->EndFile, (uint32_t)(addr >> 32));
       } else {
          dcr->EndBlock = (uint32_t)addr;
index 3691e8ccef404acde7de46ede7bafb395dc38df6..00112f3fa7cae103cdb595e949f279c796aaab7e 100644 (file)
@@ -850,7 +850,7 @@ bool write_session_label(DCR *dcr, int label)
       rec->remainder);
 
    free_record(rec);
-   Dmsg2(150, "Leave write_session_label Block=%ud File=%ud\n",
+   Dmsg2(150, "Leave write_session_label Block=%u File=%u\n",
       dev->get_block_num(), dev->get_file());
    Leave(100);
    return true;