fix: little endian

This commit is contained in:
2025-12-16 06:15:43 -06:00
parent ce83f4b54b
commit 1a640099ff

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 & 0xFF, (s_pid>>8) & 0xFF, pid);
printf(", id 0x%02x%02x = %d", (s_pid>>8) & 0xFF, s_pid & 0xFF, pid);
}
printf("\n");
}