diff options
Diffstat (limited to 'firmware/target/hosted/sdl/thread-sdl.c')
-rw-r--r-- | firmware/target/hosted/sdl/thread-sdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/hosted/sdl/thread-sdl.c b/firmware/target/hosted/sdl/thread-sdl.c index 83f1d1960d..08f20367cc 100644 --- a/firmware/target/hosted/sdl/thread-sdl.c +++ b/firmware/target/hosted/sdl/thread-sdl.c | |||
@@ -670,9 +670,9 @@ void thread_get_name(char *buffer, int size, | |||
670 | { | 670 | { |
671 | /* Display thread name if one or ID if none */ | 671 | /* Display thread name if one or ID if none */ |
672 | bool named = thread->name && *thread->name; | 672 | bool named = thread->name && *thread->name; |
673 | const char *fmt = named ? "%s" : "%08lX"; | 673 | const char *fmt = named ? "%s" : "%04lX"; |
674 | intptr_t name = named ? | 674 | intptr_t name = named ? |
675 | (intptr_t)thread->name : (intptr_t)thread; | 675 | (intptr_t)thread->name : (intptr_t)thread->id; |
676 | snprintf(buffer, size, fmt, name); | 676 | snprintf(buffer, size, fmt, name); |
677 | } | 677 | } |
678 | } | 678 | } |