summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2011-11-06 22:12:51 +0100
committerTormod Volden <debian.tormod@gmail.com>2011-11-18 23:52:45 +0100
commit3b209c98859cdf4c09aa9af4d6cd215adb8231e9 (patch)
treea1914d2a989121ac8c00bf08727137685ed63332
parent85b3d9260d1f83671e48208a5ef281451ca25604 (diff)
Add missing format string for printf
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--s3switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/s3switch.c b/s3switch.c
index 10d78a2..14942f8 100644
--- a/s3switch.c
+++ b/s3switch.c
@@ -316,7 +316,7 @@ print_current_state()
else
for( i = 0; i < 3; i++ )
if( jDevices & (0x10 << i) )
- printf( devices[i] );
+ printf( "%s", devices[i] );
printf( "\nDevices active: " );
@@ -328,7 +328,7 @@ print_current_state()
else
for( i = 0; i < 3; i++ )
if( jDevices & (0x01 << i) )
- printf( devices[i] );
+ printf( "%s", devices[i] );
if( jDevices & TV_ATTACHED )
{