Skip to content

Commit 58a5c41

Browse files
Moredreadclaude
andcommitted
Fix format specifier bug in tape_linux_sg messages
The format "0x02%x" prints literal "02" followed by hex value, instead of the intended zero-padded 2-digit hex "0x%02x". This caused incorrect output like "M = 0x0234" instead of "M = 0x34". - 30203I: "0x02%x" -> "0x%02x" - 30244I: "0x02%x" -> "0x%02x" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 21b961e commit 58a5c41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

messages/tape_linux_sg/root.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ root:table {
4242
30200I:string { "Failed to execute SG_IO ioctl, opcode = %02x (%d)." }
4343
30201D:string { "CDB check condition: sense = %06x, %s." }
4444
30202D:string { "CDB %s." }
45-
30203I:string { "CDB unexpected status: S = 0x%02x, M = 0x02%x" }
45+
30203I:string { "CDB unexpected status: S = 0x%02x, M = 0x%02x" }
4646
30204D:string { "%s (0x%02x) expected error %d." }
4747
30205I:string { "%s (0x%02x) returns %d." }
4848
30206I:string { "Cannot open device: inquiry failed (%d)." }
@@ -83,7 +83,7 @@ root:table {
8383
30241E:string { "Invalid scsi_lbprotect option: %s." }
8484
30242E:string { "Encryption method of the drive is not AME but %s (0x%02X)." }
8585
30243E:string { "Encryption feature is not supported on the drive: %d." }
86-
30244I:string { "CDB unexpected status: H = 0x%02x, D = 0x02%x" }
86+
30244I:string { "CDB unexpected status: H = 0x%02x, D = 0x%02x" }
8787
30245D:string { "Tape device returns %d, ignore for buffered sense cleaning." }
8888
30246I:string { "Connection down is detected, try to reconnect (%s)." }
8989
30247I:string { "No alternate device is found for drive %s." }

0 commit comments

Comments
 (0)