Skip to content

Commit eb48b79

Browse files
Moredreadclaude
andauthored
Fix spelling, grammar errors and format specifier bug in messages (#560)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 57486c5 commit eb48b79

File tree

9 files changed

+30
-30
lines changed

9 files changed

+30
-30
lines changed

messages/bin_ltfs/root.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ root:table {
156156
14117I:string { "Metadata only rollback mount is specified. Mounting as meta read-only from %s." }
157157
14118E:string { "Unexpected option is specified for read only mount (%d)." }
158158
14119I:string { "Rollback mount from index file is specified. Mounting as read-only from %s." }
159-
14120W:string { "Cannot access to directory %s, disabled index capture mode (%d)." }
159+
14120W:string { "Cannot access directory %s, disabled index capture mode (%d)." }
160160
14121I:string { "Index will be captured at %s at update" }
161161
14122I:string { "Index will not be captured." }
162162
14123W:string { "The main function of FUSE returned error (%d)." }
@@ -228,7 +228,7 @@ root:table {
228228
// Reserved 14445I
229229
// Reserved 14446I
230230
// Reserved 14447I
231-
14448I:string { " -o release_device Clear device reservation (should be specified with -o devname" }
231+
14448I:string { " -o release_device Clear device reservation (should be specified with -o devname)" }
232232
// Reserved 14449I
233233
// Reserved 14450I
234234
// Reserved 14451I

messages/bin_ltfsck/root.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ root:table {
101101
16059E:string { "Cannot roll back the index partition: failed to erase history (%d)." }
102102
16060E:string { "Cannot roll back the index partition: failed to write an index (%d)." }
103103
16061E:string { "Cannot roll back: invalid partition ID %c." }
104-
16062I:string { "Roll back from the data partition." }
104+
16062I:string { "Rolling back from the data partition." }
105105
16063I:string { "Specified rollback point is the current index. The volume is consistent. No operation is required." }
106106
//unused 16064I:string { "Specified rollback point is the current index, but there are extra blocks on the medium." }
107107
//unused 16065I:string { "Restoring volume consistency based on the following index." }
@@ -140,7 +140,7 @@ root:table {
140140
16098E:string { "Cannot roll back the cartridge: found unsupported index version." }
141141
16099E:string { "Use the latest version of LTFS software." }
142142
16100E:string { "Cannot recover the cartridge: found unsupported index version." }
143-
16101E:string { "Please use the latest version os LTFS software or --deep-recovery option." }
143+
16101E:string { "Please use the latest version of LTFS software or --deep-recovery option." }
144144
16102E:string { "Cannot open key manager interface backend \'%s\'." }
145145
16103W:string { "Cannot unload key manager interface backend." }
146146
16104E:string { "Could not initialize the key manager interface plug-in. \'%s\' (%d)." }
@@ -152,7 +152,7 @@ root:table {
152152
16110E:string { "The --salvage-rollback-points option was specified against a normal cartridge." }
153153
16111I:string { "The recovery process is skipped because of a locked cartridge (%d)." }
154154
16112W:string { "Cannot rename %s to %s (%d)." }
155-
16113W:string { "Cannot access to directory %s, disabled index capture mode (%d)." }
155+
16113W:string { "Cannot access directory %s, disabled index capture mode (%d)." }
156156
16114I:string { "Index will be captured in %s." }
157157
16115I:string { "Index will not be captured." }
158158

messages/bin_ltfsindextool/root.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ root:table {
6868
19527D:string { "Command line options are valid." }
6969
19528W:string { "Cannot unload key manager interface backend." }
7070
19529I:string { "Reading an index from (%u, %llu)." }
71-
19530I:string { "Block in (%u, %llu) does not look an index, seek to next position (%d)." }
71+
19530I:string { "Block in (%u, %llu) does not look like an index, seek to next position (%d)." }
7272
19531E:string { "Cannot seek to the next position (%u, %llu, %d)." }
7373
19532E:string { "Cannot allocate the file name." }
7474
19533E:string { "Cannot open the file %s (%d)." }
75-
19534I:string { "Reached to EOD (%u, %llu)." }
76-
19535I:string { "Reached to EOD but cannot get the position (%d)." }
75+
19534I:string { "Reached EOD (%u, %llu)." }
76+
19535I:string { "Reached EOD but cannot get the position (%d)." }
7777
19536E:string { "Cannot write a block (%ld, %d)." }
7878
19537I:string { "Detected the end of the index (%u, %llu)." }
7979
19538E:string { "Detected the EOD in the middle of index (%u, %llu)." }

messages/internal_error/root.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ root:table {
178178
I1125E:string{ "Volume is in physical and/or logical write protect mode." }
179179
I1126E:string{ "Write error has previously occurred on the current mount." }
180180
I1127E:string{ "Unexpected length of barcode label is set on the cartridge." }
181-
I1128E:string{ "Conversion from string to value is failed, may be invalid string." }
181+
I1128E:string{ "Conversion from string to value has failed, may be an invalid string." }
182182
I1129E:string{ "Failed to initialize admin session." }
183183
I1130E:string{ "Invalid message on admin_channel." }
184184
I1131E:string{ "Invalid password to log in via admin_channel." }
@@ -262,10 +262,10 @@ root:table {
262262
I5001E:string{ "Error happens in reading XML const value." }
263263
I5002E:string{ "Unexpected node type is detected." }
264264
I5003E:string{ "Unexpected XML document end is detected." }
265-
I5004E:string{ "Cannot detect a tags is empty or not." }
265+
I5004E:string{ "Cannot detect if a tag is empty or not." }
266266
I5005E:string{ "The tag is empty." }
267267
I5006E:string{ "Error skipping unrecognized tag." }
268-
I5007E:string{ "Do not find required tag." }
268+
I5007E:string{ "Could not find required tag." }
269269
I5008E:string{ "Duplicated tag is detected." }
270270
I5009E:string{ "XML tag is not closed correctly." }
271271
I5010E:string{ "Cannot save the tag." }

messages/libltfs/root.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ root:table {
287287
11190E:string { "Comparing labels: unknown partition ID." }
288288
11191E:string { "Comparing labels: partitions have the same ID \'%c\'." }
289289
11192E:string { "Comparing labels: invalid bar code number." }
290-
11193E:string { "Cannot read index: failed to determined medium position (%d)." }
290+
11193E:string { "Cannot read index: failed to determine medium position (%d)." }
291291
11194W:string { "Cannot read index: failed to read and parse XML data (%d)." }
292292
11195W:string { "This index belongs to a different volume." }
293293
11196W:string { "Cannot read index: self-pointer mismatch." }
294294
11197E:string { "Cannot read index: back pointer is corrupt." }
295295
11198E:string { "Cannot read index: failed to space forward 1 file mark (%d)." }
296296
11199E:string { "Cannot locate index: failed to locate to EOD (%d)." }
297-
11200E:string { "Cannot locate index: failed to determined medium position (%d)." }
297+
11200E:string { "Cannot locate index: failed to determine medium position (%d)." }
298298
11201E:string { "Cannot locate index: failed to space back 1 file mark (%d)." }
299299
11202E:string { "Cannot locate index: failed to space forward 1 file mark (%d)." }
300300
11203E:string { "Cannot locate index: failed to space back 2 file marks (%d)." }
@@ -437,7 +437,7 @@ root:table {
437437
11340I:string { "Revalidation process is successfully done. (%s)" }
438438
//unused 11341E:string { "Failed to update the volume lock status to %d (%d)." }
439439
11342E:string { "Failed to get the volume lock status (%d)." }
440-
11343I:string { "Try to write an index on the IP on %s because of a permanent write error on the DP.." }
440+
11343I:string { "Try to write an index on the IP on %s because of a permanent write error on the DP." }
441441
11344I:string { "Tape %s is frozen successfully because of a permanent write error on the DP." }
442442
11345E:string { "Failed to freeze tape %s because of permanent write errors on the IP and DP." }
443443
11346E:string { "Tape %s is frozen by the previous index on the tape. Some metadata will be lost during the unmount operation." }
@@ -533,14 +533,14 @@ root:table {
533533

534534
// Message IDs 14000-14499 are reserved for the ltfs executable.
535535
// DO NOT add messages with those IDs to this file.
536-
v
536+
537537
// Message IDs 14500-14999 are reserved for the admin_channel interface.
538538
// DO NOT add messages with those IDs to this file.
539539

540540
// Message IDs 15000-15499 are reserved for the mkltfs executable.
541541
// DO NOT add messages with those IDs to this file.
542542

543-
// Message IDs 15500-15999 are reserved for the cropto plugins.
543+
// Message IDs 15500-15999 are reserved for the crypto plugins.
544544
// DO NOT add messages with those IDs to this file.
545545

546546
// Message IDs 16000-16499 are reserved for the ltfsck executable.
@@ -622,7 +622,7 @@ v
622622
17070I:string { "Synced index of %s (%d) %s." }
623623
17071I:string { "Unpartitioning the medium." }
624624
17072E:string { "Cannot unformat: failed to unpartition the medium (%d)." }
625-
17073I:string { "Tape Device list:." }
625+
17073I:string { "Tape Device list:" }
626626
17074I:string { "Device Name = %s, Vendor ID = %s, Product ID = %s, Serial Number = %s, Product Name =%s." }
627627
17075E:string { "Traverse(%c): cannot read index from %d (%c)." }
628628
17076E:string { "Traverse(%c): cannot locate to the next index position (%c)." }

messages/tape_freebsd_cam/root.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ root:table {
6868
31236D:string { "Read block: file mark detected" }
6969
31237I:string { "Read block: overlength condition is detected. residual = %d, actual = %d" }
7070
31238D:string { "Read block: underlength condition is detected. shortage = %d, actual = %d" }
71-
31239E:string { "Logical block protection Error on read" }
71+
31239E:string { "Logical block protection error on read." }
7272
31245W:string { "Received low space warning (early warning) in %s" }
7373
31246W:string { "Received low space warning (programmable early warning) in %s" }
74-
31247E:string { "Logical block protection Error on write" }
74+
31247E:string { "Logical block protection error on write." }
7575
31248D:string { "EOD detected (%s): ignore sense" }
7676
31249I:string { "Unrecognized space type" }
7777
31250I:string { "Cannot space: count value %d of the space command is too large" }

messages/tape_iokit/root.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ root:table {
4242
start_id:int { 30800 }
4343
end_id:int { 30999 }
4444

45-
30800I:string { "Cannot set scatter gather, The opcode = %02x (%d)." }
46-
30801I:string { "Cannot set CDB, The opcode = %02x (%d)." }
47-
30802I:string { "Cannot set timeout, The opcode = %02x (%d)." }
48-
30803I:string { "Failed to execute CDB, The opcode = %02x (%d)." }
45+
30800I:string { "Cannot set scatter gather, the opcode = %02x (%d)." }
46+
30801I:string { "Cannot set CDB, the opcode = %02x (%d)." }
47+
30802I:string { "Cannot set timeout, the opcode = %02x (%d)." }
48+
30803I:string { "Failed to execute CDB, the opcode = %02x (%d)." }
4949
30804D:string { "CDB check condition: sense = %06x, %s." }
5050
30805D:string { "CDB %s." }
5151
30806I:string { "Unexpected CDB status: 0x%08x." }

messages/tape_linux_lin_tape/root.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ root:table {
8686
30440W:string { "Detect ENOMEM in write() call. Wait 3 secs and retry (%d)." }
8787
30441I:string { "Retrying write() call at (%u, %llu)." }
8888
30442I:string { "Skip retrying write() call at (%u, %llu), because the record was already written (%u, %llu)." }
89-
30443W:string { "Enexpected current position (%d). (%u, %llu), (%u, %llu) ." }
90-
30444W:string { "Position confirmation for write() call retry is failed (%d). (%u, %llu), (%u, %llu)." }
89+
30443W:string { "Unexpected current position (%d). (%u, %llu), (%u, %llu) ." }
90+
30444W:string { "Position confirmation for write() call retry has failed (%d). (%u, %llu), (%u, %llu)." }
9191
30445W:string { "Received low space warning (early warning) in %s." }
9292
30446W:string { "Received low space warning (programmable early warning) in %s." }
9393
30447E:string { "Logical block protection Error on write." }

messages/tape_linux_sg/root.txt

Lines changed: 5 additions & 5 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." }
@@ -100,7 +100,7 @@ root:table {
100100
30258W:string { "Cannot retrieve drive dump: failed to read buffer (%d)." }
101101
30259W:string { "Cannot retrieve drive dump: failed to write to dump file (%d)." }
102102
30260W:string { "Cannot retrieve drive dump: wrote %d bytes out, expected %d." }
103-
30261W:string { "Cannot retrieve drive dump: failed to write to communicate with drive. Tried (%d) times." }
103+
30261W:string { "Cannot retrieve drive dump: failed to communicate with drive. Tried (%d) times." }
104104
30261I:string { "Taking drive dump in buffer." }
105105
30262I:string { "Forcing drive dump." }
106106
30263I:string { "%s returns %s (%d) %s." }
@@ -121,9 +121,9 @@ root:table {
121121
30278I:string { "Retrying the %s operation at (%u, %llu)." }
122122
30279I:string { "Retrying the %s operation at (%u, %llu) with skip back, because the command was already run (%u, %llu)." }
123123
30280W:string { "Unexpected current position for %s operation (%d). (%u, %llu), (%u, %llu) ." }
124-
30281W:string { "Position confirmation for %s operation retry is failed (%d). (%u, %llu), (%u, %llu)." }
124+
30281W:string { "Position confirmation for %s operation retry has failed (%d). (%u, %llu), (%u, %llu)." }
125125
30282W:string { "Unexpected position after skip back for a %s operation. (%u, %llu), (%u, %llu)." }
126-
30283W:string { "Skip back for %s operation is failed (%d). (%u, %llu), (%u, %llu)." }
126+
30283W:string { "Skip back for %s operation has failed (%d). (%u, %llu), (%u, %llu)." }
127127
30284I:string { "Cannot get the reserved buffer size of %s." }
128128
30285I:string { "The reserved buffer size of %s is %d." }
129129
30286I:string { "Failed to get the cartridge status. The cartridge is not loaded." }

0 commit comments

Comments
 (0)