hosted: Fix "monitor version"

This commit is contained in:
Uwe Bonnes 2021-09-19 13:21:55 +02:00 committed by UweBonnes
parent da15cc3cb7
commit 88cce08ce4
1 changed files with 3 additions and 3 deletions

View File

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