[dvblast-devel] [PATCH 2/2] Fix format string errors

Georgi Chorbadzhiyski gf at unixsol.org
Fri Aug 19 15:02:34 CEST 2011


Fix format string errors.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/
-------------- next part --------------
From cf798f934ac8d2932f8a39358418985e53a2db0c Mon Sep 17 00:00:00 2001
From: Georgi Chorbadzhiyski <gf at unixsol.org>
Date: Fri, 19 Aug 2011 15:59:21 +0300
Subject: [PATCH 2/2] Fix format string errors

---
 trunk/dvb.c  |    2 +-
 trunk/util.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/trunk/dvb.c b/trunk/dvb.c
index 8d3bd10..42a7bf0 100644
--- a/trunk/dvb.c
+++ b/trunk/dvb.c
@@ -526,7 +526,7 @@ static int FrontendDoDiseqc(void)
         if( ioctl( i_frontend, FE_DISEQC_SEND_BURST,
                    i_satnum == 0xB ? SEC_MINI_B : SEC_MINI_A ) < 0 )
         {
-            msg_Err( NULL, "ioctl FE_SEND_BURST failed (%m)", strerror(errno) );
+            msg_Err( NULL, "ioctl FE_SEND_BURST failed (%s)", strerror(errno) );
             exit(1);
         }
         msleep(100000); /* ... */
diff --git a/trunk/util.c b/trunk/util.c
index 2219f1e..dcc65a1 100644
--- a/trunk/util.c
+++ b/trunk/util.c
@@ -249,7 +249,7 @@ void hexDump( uint8_t *p_data, uint32_t i_len )
         }
 
         sprintf( &p_outline[53], "%16s", p_hrdata );
-        msg_Dbg( NULL, p_outline );
+        msg_Dbg( NULL, "%s", p_outline );
     }
 
     free( p_hrdata );
-- 
1.7.5.1


More information about the dvblast-devel mailing list