From 258982f9343366135055858b33ffb92601eeed12 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 17 Nov 2003 01:45:29 +0000 Subject: [PATCH] Better fix of the warnings in the format string. --- stepmania/src/StageStats.cpp | 2 +- stepmania/src/arch/Lights/LightsDriver_LinuxSerial.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index 9e1e19e911..7435f27293 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -277,7 +277,7 @@ bool StageStats::FullCombo( PlayerNumber pn ) const { if( ComboList[pn].size() != 1 ) { - LOG->Trace("FullCombo(%i): %i != 1", pn, int(ComboList[pn].size())); + LOG->Trace("FullCombo(%i): %lu != 1", pn, ComboList[pn].size()); return false; } diff --git a/stepmania/src/arch/Lights/LightsDriver_LinuxSerial.cpp b/stepmania/src/arch/Lights/LightsDriver_LinuxSerial.cpp index 8dce0b93df..a5bb027ece 100644 --- a/stepmania/src/arch/Lights/LightsDriver_LinuxSerial.cpp +++ b/stepmania/src/arch/Lights/LightsDriver_LinuxSerial.cpp @@ -57,10 +57,10 @@ LightsDriver_LinuxSerial::LightsDriver_LinuxSerial() tcsetattr(fd, TCSANOW, &my_termios); LOG->Info("Lights info:"); - LOG->Info(" new cflag=%08x", unsigned(my_termios.c_cflag)); - LOG->Info(" new oflag=%08x", unsigned(my_termios.c_oflag)); - LOG->Info(" new iflag=%08x", unsigned(my_termios.c_iflag)); - LOG->Info(" new lflag=%08x", unsigned(my_termios.c_lflag)); + LOG->Info(" new cflag=%08lx", my_termios.c_cflag); + LOG->Info(" new oflag=%08lx", my_termios.c_oflag); + LOG->Info(" new iflag=%08lx", my_termios.c_iflag); + LOG->Info(" new lflag=%08lx", my_termios.c_lflag); // c_line dosen't seem to be defined in every termios.h file // Is it really needed in info? #if 0