mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
[LOG2LINES] Use translate_line() for command line input too
NB: Last step would be to re-use translate_files()...
This commit is contained in:
parent
04c851194c
commit
c5d8d8d289
1 changed files with 5 additions and 7 deletions
|
@ -634,22 +634,20 @@ main(int argc, const char **argv)
|
||||||
const char *exefile = NULL;
|
const char *exefile = NULL;
|
||||||
const char *offset = NULL;
|
const char *offset = NULL;
|
||||||
char Line[LINESIZE + 1];
|
char Line[LINESIZE + 1];
|
||||||
|
char PathBuffer[LINESIZE + 1];
|
||||||
|
char LineOutBuffer[LINESIZE + 1];
|
||||||
|
|
||||||
while (i < argc)
|
while (i < argc)
|
||||||
{
|
{
|
||||||
Line[0] = '\0';
|
|
||||||
offset = argv[optCount + i++];
|
offset = argv[optCount + i++];
|
||||||
if (isOffset(offset))
|
if (isOffset(offset))
|
||||||
{
|
{
|
||||||
if (exefile)
|
if (exefile)
|
||||||
{
|
{
|
||||||
l2l_dbg(2, "translating %s %s\n", exefile, offset);
|
l2l_dbg(2, "translating %s %s\n", exefile, offset);
|
||||||
printf("<%s:%s", exefile, offset);
|
|
||||||
if (!translate_file(exefile, my_atoi(offset), Line))
|
sprintf(Line, "<%s:%s>\n", exefile, offset);
|
||||||
{
|
translate_line(conOut, Line, PathBuffer, LineOutBuffer);
|
||||||
printf(" (%s)", Line);
|
|
||||||
}
|
|
||||||
printf(">\n");
|
|
||||||
report(conOut);
|
report(conOut);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue