Changed debug message format
#ifdef P4DPDK_DEBUG
#define __SHORTFILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
+ #define SHORTEN(str, len) ((strlen(str) <= (len)) ? (str) : ((str) + (strlen(str) - len)))
- #define lcore_debug(M, ...) fprintf(stderr, "[CORE %d@%d] (%13s@%03d) " M "", (int)(rte_lcore_id()), rte_lcore_to_socket_id(rte_lcore_id()), __SHORTFILENAME__, __LINE__, ##__VA_ARGS__)
+ #define lcore_debug(M, ...) fprintf(stderr, "%11.11s@%4d [CORE%2d@%d] " M "", SHORTEN(__SHORTFILENAME__, 13), __LINE__, (int)(rte_lcore_id()), rte_lcore_to_socket_id(rte_lcore_id()), ##__VA_ARGS__)
#define no_core_debug(M, ...) fprintf(stderr, "[NO-CORE] " M "", ##__VA_ARGS__)
#include <pthread.h>
