From: Karel Zak Date: Mon, 2 Aug 2021 13:49:10 +0000 (+0200) Subject: libfdisk: (dos) index partition from zero for DBG() X-Git-Tag: v2.38-rc1~324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f8244c66e9190135c84c0fb5af5e1671c929f94;p=thirdparty%2Futil-linux.git libfdisk: (dos) index partition from zero for DBG() References: https://github.com/karelzak/util-linux/pull/1394 Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 1eb3ec53bc..6c7a655a76 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -329,7 +329,7 @@ static void dos_init(struct fdisk_context *cxt) pe->changed = 0; DBG(LABEL, ul_debug("DOS: initialize: #%zu start=%u size=%u sysid=%02x", - i + 1, + i, dos_partition_get_start(pe->pt_entry), dos_partition_get_size(pe->pt_entry), pe->pt_entry->sys_ind)); @@ -2645,7 +2645,7 @@ int fdisk_dos_fix_chs(struct fdisk_context *cxt) DBG(LABEL, ul_debug("DOS: changing %zu partition CHS " "from (%d, %d, %d)-(%d, %d, %d) " "to (%d, %d, %d)-(%d, %d, %d)", - i+1, obc, obh, obs, oec, oeh, oes, + i, obc, obh, obs, oec, oeh, oes, nbc, nbh, nbs, nec, neh, nes)); p->bc = nbc & 0xff; p->bh = nbh;