https://bugzilla.novell.com/show_bug.cgi?id=401350 User bili@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=401350#c14 Li Bin <bili@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |lchiquitto@novell.com --- Comment #14 from Li Bin <bili@novell.com> 2008-07-07 03:48:46 MDT --- Leonardo, It's a little weird, I've changed the byte order, but your log is still the same. So I write a little sample for test your byte order, would mind compile it and run in your ppc, then send me back your result. --- endian.c ---- #include <stdio.h> #include <endian.h> #include <sys/types.h> #include <arpa/inet.h> #if BYTE_ORDER == BIG_ENDIAN #define TEST_ENDIAN 0x1234; #else #define TEST_ENDIAN 0x3412 #endif int main () { int i = TEST_ENDIAN; u_int16_t out = 0; out = htons((u_int16_t)i); printf ("i is 0x%08x. out is 0x%08x.\n", i, out); return 0; } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.