I tried (on Debain stable ("sarge")):
Code:
#include <stdio.h>
#include <termios.h>
int main()
{
printf("CS8:%04X\n", CS8);
return 0;
}
And it does give me the correct answer:
Code:
bash$ gcc -Wall -pedantic -o cs cs.c
bash$ ./cs
CS8:0030
Do you have an extra '0' in the printf format string?