Diagnostic 1872: byte order mismatch in format string conversion

Diagnostic 1872: byte order mismatch in format string conversion

Thank you for your interest in this diagnostic message. We are still in the process of documenting this specific diagnostic.

Please let us know of your experience with this diagnostic message by posting a comment below. Your interest in this diagnostic will help us prioritize the order we document diagnostics.

For more complete information about compiler optimizations, see our Optimization Notice.

1 comment

Top
anonymous's picture

I have the following code that can be compiled in gcc and but not icc for x86_64:
...
int rx_bytes, rx_packets, rx_errors;
stats = strstr(stats_line, ":");
stats++;
sscanf(stats, "%d %d %d", &rx_bytes, &rx_packets, &rx_errors);
...
the error I got was
1872: byte order mismatch in format string conversion
&rx_bytes, &rx_packets, &rx_errors
I am not sure what I was missing. Can you please help?
thanks.

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.