This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

io/serial format string warnings


Hi,

The following little patch fixes 2 format string compiler warnings in
io/serial.

Index: packages/io/serial/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/ChangeLog,v
retrieving revision 1.59
diff -u -u -r1.59 ChangeLog
--- packages/io/serial/current/ChangeLog	3 Dec 2004 09:52:28 -0000	1.59
+++ packages/io/serial/current/ChangeLog	13 May 2005 07:13:15 -0000
@@ -1,3 +1,8 @@
+2005-05-13  Peter Korsgaard  <jacmet@sunsite.dk>
+
+	* src/common/serial.c (serial_init): Fix compiler warnings about
+	formats.	
+
 2004-11-30  Jani Monoses <jani@iv.ro>
 
 	 * cdl/io_serial.cdl : CYGPKG_IO_SERIAL_SELECT_SUPPORT requires 
Index: packages/io/serial/current/src/common/serial.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/src/common/serial.c,v
retrieving revision 1.25
diff -u -u -r1.25 serial.c
--- packages/io/serial/current/src/common/serial.c	20 Jan 2004 08:53:30 -0000	1.25
+++ packages/io/serial/current/src/common/serial.c	13 May 2005 07:13:15 -0000
@@ -239,7 +239,7 @@
     if (chan->init) return;
     if (chan->out_cbuf.len != 0) {
 #ifdef CYGDBG_IO_INIT
-        diag_printf("Set output buffer - buf: %x len: %d\n", chan->out_cbuf.data, chan->out_cbuf.len);
+        diag_printf("Set output buffer - buf: %p len: %d\n", chan->out_cbuf.data, chan->out_cbuf.len);
 #endif
         chan->out_cbuf.waiting = false;
         chan->out_cbuf.abort = false;
@@ -258,7 +258,7 @@
         cbuf_t *cbuf = &chan->in_cbuf;
 
 #ifdef CYGDBG_IO_INIT
-        diag_printf("Set input buffer - buf: %x len: %d\n", cbuf->data, cbuf->len);
+        diag_printf("Set input buffer - buf: %p len: %d\n", cbuf->data, cbuf->len);
 #endif
         cbuf->waiting = false;
         cbuf->abort = false;
-- 
Bye, Peter Korsgaard

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]