diff --git a/src/print.c b/src/print.c index 3c6eed1..d9460f9 100644 --- a/src/print.c +++ b/src/print.c @@ -36,7 +36,7 @@ void print_header(const struct setting *settings) { unsigned short pid = getpid(); unsigned short s_pid = htons(getpid()); - printf(", id 0x%02x%02x = %d", (s_pid>>8) & 0xFF, s_pid & 0xFF, pid); + printf(", id 0x%02x%02x = %d", s_pid & 0xFF, (s_pid>>8) & 0xFF, pid); } printf("\n"); }