Skip to content

Commit d2ce571

Browse files
committed
Fix warning and improve messages
1 parent e2ba2af commit d2ce571

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SAP-Report-Source-Decompressor/sap-reposrc-decompressor.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
7272
// Open input file
7373
fin = fopen(argv[1], "rb");
7474
if (fin == NULL) {
75-
printf("Error: Failed to open input file '%s'\n", argv[1]);
75+
printf("Error opening input file '%s'\n", argv[1]);
7676
return 1;
7777
}
7878

@@ -96,15 +96,15 @@ int main(int argc, char *argv[]) {
9696
// Create output file
9797
fout = fopen(argv[2], "wb");
9898
if (fout == NULL) {
99-
printf("Error: Failed to create output file '%s'\n", argv[2]);
99+
printf("Error creating output file '%s'\n", argv[2]);
100100
return 2;
101101
}
102102

103103
printf("Compressed source read from '%s'\n", argv[1]);
104104

105105
// Determine compression algorithm
106106
ret = o.CsGetAlgorithm(bin + 1);
107-
printf("Algorithm: %u (1 = LZC, 2 = LZH)\n", ret);
107+
printf("Algorithm: %i (1 = LZC, 2 = LZH)\n", ret);
108108

109109
for (;;) {
110110
// Create output buffer with an initial size factor of 10 x input buffer

0 commit comments

Comments
 (0)