Skip to content

block/partitions/ldm: fix TOCBLOCK bitmap mismatch message argument order#893

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1101426=>linus-master
Open

block/partitions/ldm: fix TOCBLOCK bitmap mismatch message argument order#893
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1101426=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 27, 2026

Pull request for series with
subject: block/partitions/ldm: fix TOCBLOCK bitmap mismatch message argument order
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1101426

…rder

The ldm_crit() calls in ldm_parse_tocblock() have the format string
arguments in the wrong order. The format string reads:

  "TOCBLOCK's first bitmap is '%s', should be '%s'."

The intent is to print the actual (on-disk) name first and the expected
name second. However, the constant TOC_BITMAP1/TOC_BITMAP2 (expected) is
passed as the first argument and toc->bitmapX_name (actual) as the
second, producing misleading diagnostic output on corrupt disks.

Swap the two arguments so the printed message matches its intended
semantics.

Signed-off-by: liyouhong <liyouhong@kylinos.cn>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 27, 2026

Upstream branch: e8c2f9f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1101426
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants