From: Kern Sibbald Date: Fri, 1 Jan 2016 08:21:29 +0000 (+0100) Subject: Fix a few debug outputs that should be unsigned X-Git-Tag: Release-7.4.0~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eedbc3d18380ca1b045b10c95d8862dc2223cbe4;p=bacula%2Fbacula Fix a few debug outputs that should be unsigned --- diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index 75ec5bfba7..b74027bebc 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -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; diff --git a/bacula/src/stored/label.c b/bacula/src/stored/label.c index 3691e8ccef..00112f3fa7 100644 --- a/bacula/src/stored/label.c +++ b/bacula/src/stored/label.c @@ -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;