This commit is contained in:
2025-12-16 06:16:59 -06:00
parent 1a640099ff
commit 0c5dfbb9b4

View File

@@ -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");
}