From eedbc3d18380ca1b045b10c95d8862dc2223cbe4 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 1 Jan 2016 09:21:29 +0100 Subject: [PATCH] Fix a few debug outputs that should be unsigned --- bacula/src/stored/block.c | 4 ++-- bacula/src/stored/label.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5