eal/linux: remove thread ID from debug message
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 13 Mar 2019 17:06:57 +0000 (18:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 31 Mar 2019 00:01:28 +0000 (01:01 +0100)
commitc2d82896ac6d9ea02c76044a8d4a612023ccf571
tree5ffa6b636b7618a7cee9a579fe42cf716940ebe7
parent8dd56ce2613c9673f027d2b9a039a16716872c03
eal/linux: remove thread ID from debug message

There is no guarantee that pthread_self() returns the thread ID or that
pthread_t is an integer. The thread ID is not that useful so simply
remove it.

This fixes the following warning when building with musl libc:

lib/librte_eal/linuxapp/eal/eal_dev.c: In function 'sigbus_handler':
lib/librte_eal/linuxapp/eal/eal_dev.c:70:3: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
   (int)pthread_self(), info->si_addr);
   ^

Fixes: 0fc54536b14a ("eal: add failure handling for hot-unplug")
Cc: stable@dpdk.org
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
lib/librte_eal/linux/eal/eal_dev.c