mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
cksum: Print checksums as decimal rather than hexadecimal
POSIX and the implementations I see expect checksum to be printed just as an unsigned integer.
This commit is contained in:
parent
09a053a723
commit
b7dbdb4cd2
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/kemzeb Commit: https://github.com/SerenityOS/serenity/commit/b7dbdb4cd2 Pull-request: https://github.com/SerenityOS/serenity/pull/22793 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto file = file_or_error.release_value();
|
||||
auto data = build_checksum_data_using_file(file.ptr(), filepath);
|
||||
|
||||
outln("{:08x} {}", data.checksum, data.file_size);
|
||||
outln("{} {}", data.checksum, data.file_size);
|
||||
|
||||
// We return fail here since build_checksum_data_using_file() may set it to true, indicating problems have occurred.
|
||||
return fail;
|
||||
|
@ -110,7 +110,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto file = file_or_error.release_value();
|
||||
auto data = build_checksum_data_using_file(file.ptr(), path);
|
||||
|
||||
outln("{:08x} {} {}", data.checksum, data.file_size, path);
|
||||
outln("{} {} {}", data.checksum, data.file_size, path);
|
||||
}
|
||||
|
||||
return fail;
|
||||
|
|
Loading…
Add table
Reference in a new issue