diff --git a/src/command.c b/src/command.c index 4d0d1e5..9f9878d 100644 --- a/src/command.c +++ b/src/command.c @@ -136,7 +136,7 @@ bool cmd_version(target *t, int argc, char **argv) (void)argc; (void)argv; #if PC_HOSTED == 1 - gdb_outf("Black Magic Probe, PC-Hosted for " PLATFORM_IDENT + gdb_outf("Black Magic Probe, PC-Hosted for " PLATFORM_IDENT() ", Version " FIRMWARE_VERSION "\n"); #else gdb_outf("Black Magic Probe (Firmware " FIRMWARE_VERSION ") (Hardware Version %d)\n", platform_hwversion()); diff --git a/src/platforms/libftdi/platform.h b/src/platforms/libftdi/platform.h index 122cdce..d174aaf 100644 --- a/src/platforms/libftdi/platform.h +++ b/src/platforms/libftdi/platform.h @@ -38,7 +38,7 @@ #define PLATFORM_HAS_DEBUG -#define PLATFORM_IDENT "FTDI/MPSSE" +#define PLATFORM_IDENT() "FTDI/MPSSE" #define SET_RUN_STATE(state) #define SET_IDLE_STATE(state) #define SET_ERROR_STATE(state) diff --git a/src/platforms/pc-hosted/platform.h b/src/platforms/pc-hosted/platform.h index 8b1c71b..535e9ea 100644 --- a/src/platforms/pc-hosted/platform.h +++ b/src/platforms/pc-hosted/platform.h @@ -35,7 +35,7 @@ #define PLATFORM_HAS_DEBUG #define PLATFORM_HAS_POWER_SWITCH #define PLATFORM_MAX_MSG_SIZE (256) -#define PLATFORM_IDENT "PC-HOSTED" +#define PLATFORM_IDENT() "PC-HOSTED" #define BOARD_IDENT PLATFORM_IDENT #define SET_RUN_STATE(state) #define SET_IDLE_STATE(state) diff --git a/src/platforms/pc-stlinkv2/platform.h b/src/platforms/pc-stlinkv2/platform.h index c3f0bba..4535c74 100644 --- a/src/platforms/pc-stlinkv2/platform.h +++ b/src/platforms/pc-stlinkv2/platform.h @@ -35,7 +35,7 @@ #define PLATFORM_HAS_DEBUG -#define PLATFORM_IDENT "StlinkV2/3" +#define PLATFORM_IDENT() "StlinkV2/3" #define SET_RUN_STATE(state) void stlink_check_detach(int state); #define SET_IDLE_STATE(state) stlink_check_detach(state) diff --git a/src/remote.c b/src/remote.c index 30cd075..a1ade3b 100644 --- a/src/remote.c +++ b/src/remote.c @@ -243,7 +243,7 @@ void remotePacketProcessGEN(uint8_t i, char *packet) break; #if !defined(BOARD_IDENT) && defined(PLATFORM_IDENT) -# define BOARD_IDENT PLATFORM_IDENT +# define BOARD_IDENT() PLATFORM_IDENT #endif case REMOTE_START: _respondS(REMOTE_RESP_OK, BOARD_IDENT " " FIRMWARE_VERSION);