forked from M-Labs/artiq
1
0
Fork 0

runtime/rtio: reverse char ordering in log messages

This commit is contained in:
Sebastien Bourdeauducq 2015-12-27 01:07:18 +08:00
parent 50a463a6fd
commit 048dcbee92
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ void rtio_log(long long int timestamp, char *message)
i = 0; i = 0;
word = 0; word = 0;
while(1) { while(1) {
word >>= 8; word <<= 8;
word |= *message << 24; word |= *message & 0xff;
if(*message == 0) { if(*message == 0) {
rtio_o_data_write(word); rtio_o_data_write(word);
rtio_o_we_write(1); rtio_o_we_write(1);