[LOG2LINES] Partially sync output format from command line input (#1109)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Thu, 20 Dec 2018 23:27:01 +0000 (00:27 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Thu, 20 Dec 2018 23:27:01 +0000 (00:27 +0100)
sdk/tools/log2lines/log2lines.c

index cbe9482..7213781 100644 (file)
@@ -644,8 +644,12 @@ main(int argc, const char **argv)
                 if (exefile)
                 {
                     l2l_dbg(2, "translating %s %s\n", exefile, offset);
-                    translate_file(exefile, my_atoi(offset), Line);
-                    printf("%s\n", Line);
+                    printf("<%s:%s", exefile, offset);
+                    if (!translate_file(exefile, my_atoi(offset), Line))
+                    {
+                        printf(" (%s)", Line);
+                    }
+                    printf(">\n");
                     report(conOut);
                 }
                 else