From: Tobias Stoeckmann Date: Wed, 18 Feb 2026 20:10:21 +0000 (+0100) Subject: lib/fileeq: Extend debug message X-Git-Tag: v2.43-devel~56^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf2e417a57284e3bc2486402e07029297daf57a;p=thirdparty%2Futil-linux.git lib/fileeq: Extend debug message Log how many bytes were actually read, not just how many were requested. This difference occurs for files smaller than 32 bytes. Signed-off-by: Tobias Stoeckmann --- diff --git a/lib/fileeq.c b/lib/fileeq.c index 3efe34340..d76ee6e67 100644 --- a/lib/fileeq.c +++ b/lib/fileeq.c @@ -473,7 +473,7 @@ static ssize_t get_intro(struct ul_fileeq *eq, struct ul_fileeq_data *data, if (fd < 0) return -1; rsz = read_all(fd, (char *) data->intro, sizeof(data->intro)); - DBG(DATA, ul_debugobj(data, " read %zu bytes intro", sizeof(data->intro))); + DBG(DATA, ul_debugobj(data, " read %zd bytes [%zu wanted] intro", rsz, sizeof(data->intro))); if (rsz < 0) return -1; data->nblocks = 1;