hosted: Fix "monitor version"
This commit is contained in:
parent
da15cc3cb7
commit
88cce08ce4
|
@ -134,17 +134,17 @@ bool cmd_version(target *t, int argc, char **argv)
|
||||||
(void)t;
|
(void)t;
|
||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
gdb_out(BOARD_IDENT);
|
|
||||||
#if PC_HOSTED == 1
|
#if PC_HOSTED == 1
|
||||||
char ident[256];
|
char ident[256];
|
||||||
gdb_ident(ident, sizeof(ident));
|
gdb_ident(ident, sizeof(ident));
|
||||||
gdb_outf("\n for %s\n", ident);
|
DEBUG_WARN("%s\n", ident);
|
||||||
#else
|
#else
|
||||||
|
gdb_out(BOARD_IDENT);
|
||||||
gdb_outf(", Hardware Version %d\n", platform_hwversion());
|
gdb_outf(", Hardware Version %d\n", platform_hwversion());
|
||||||
#endif
|
|
||||||
gdb_out("Copyright (C) 2015 Black Sphere Technologies Ltd.\n");
|
gdb_out("Copyright (C) 2015 Black Sphere Technologies Ltd.\n");
|
||||||
gdb_out("License GPLv3+: GNU GPL version 3 or later "
|
gdb_out("License GPLv3+: GNU GPL version 3 or later "
|
||||||
"<http://gnu.org/licenses/gpl.html>\n\n");
|
"<http://gnu.org/licenses/gpl.html>\n\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue