[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] FEC error messages



Hello.

Here is a tiny fix for the FireBee FEC ethernet driver error messages. The missing end of lines were very ugly when starting FreeMiNT on EmuTOS.

fec.patch
Fixed end of line on error messages. Contributed by Vincent Riviere.

Please commit.

--
Vincent Rivière
diff -aurN -x CVS freemint.orig/sys/sockets/xif/fec/fec.c freemint/sys/sockets/xif/fec/fec.c
--- freemint.orig/sys/sockets/xif/fec/fec.c	2011-12-11 20:33:30.453125000 +0100
+++ freemint/sys/sockets/xif/fec/fec.c	2012-10-09 19:57:23.296875000 +0200
@@ -1071,7 +1071,7 @@
 
     if( mc_dma_init() == NULL )
     {
-        c_conws("Exit: failed to load DMA API!\n");
+        c_conws("Exit: failed to load DMA API!\r\n");
         KDEBUG(("Exit: failed to load DMA API!"));
         return( 1 );
     }
@@ -1158,7 +1158,7 @@
      */
     if_register (&if_fec[0]);
 
-    ksprintf (message, "%s v%d.%d  (%s%d - %02x:%02x:%02x:%02x:%02x:%02x) \n\r",
+    ksprintf (message, "%s v%d.%d  (%s%d - %02x:%02x:%02x:%02x:%02x:%02x)\r\n",
               FEC_DRIVER_DESC,
               FEC_DRIVER_MAJOR_VERSION,
               FEC_DRIVER_MINOR_VERSION,
@@ -1194,7 +1194,7 @@
 
     if( fec_buf_init(fi) )
     {
-        c_conws("fec_buf_init failed!");
+        c_conws("fec_buf_init failed!\r\n");
         fec_buf_flush(fi);
         res = 1;
     }
@@ -1207,7 +1207,7 @@
         if( (mode == FEC_MODE_MII) && (am79c874_init(fi->ch, FEC_PHY(fi->ch), speed, duplex) == 0) )
         {
             /* Flush the network buffers */
-            c_conws("am79c874_init failed!");
+            c_conws("am79c874_init failed!\r\n");
             fec_buf_flush(fi);
             res = 1;
         }