When switching to `fmt::format()` we accidentaly changed
the format of how we dump threads ID in `Log::dump_recent()`.
This commit rectifies that.
Fixes: https://tracker.ceph.com/issues/50653
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit
14706f9a568b0fe8994edc81583872ba135523ec)
{
char pthread_name[16] = {0}; //limited by 16B include terminating null byte.
ceph_pthread_getname(pthread_id, pthread_name, sizeof(pthread_name));
- _log_message(fmt::format(" {} / {}",
+ // we want the ID to be printed in the same format as we use for a log entry.
+ // The reason is easier grepping.
+ _log_message(fmt::format(" {:x} / {}",
tid_to_int(pthread_id), pthread_name), true);
}