Whamcloud - gitweb
b=16909 add CNETERR() cleanup console messages
authorCliff White <cliff.white@oracle.com>
Fri, 20 Aug 2010 21:08:24 +0000 (01:08 +0400)
committerMikhail Pershin <tappro@sun.com>
Tue, 24 Aug 2010 19:19:09 +0000 (23:19 +0400)
i=johann.lombardi
i=maxim.patlasov

Change LNET GET/PUT console errors to CNETERR, add CNETERR macro

libcfs/include/libcfs/libcfs_debug.h
lnet/lnet/lib-move.c

index 6a13331..44b2e07 100644 (file)
@@ -228,6 +228,7 @@ do {                                                                    \
 
 #define CWARN(format, ...)          CDEBUG_LIMIT(D_WARNING, format, ## __VA_ARGS__)
 #define CERROR(format, ...)         CDEBUG_LIMIT(D_ERROR, format, ## __VA_ARGS__)
+#define CNETERR(format, a...)       CDEBUG_LIMIT(D_NETERROR, format, ## a)
 #define CEMERG(format, ...)         CDEBUG_LIMIT(D_EMERG, format, ## __VA_ARGS__)
 
 #define LCONSOLE(mask, format, ...) CDEBUG(D_CONSOLE | (mask), format, ## __VA_ARGS__)
index 3b87dc3..abdceaa 100644 (file)
@@ -2534,7 +2534,7 @@ LNetPut(lnet_nid_t self, lnet_handle_md_t mdh, lnet_ack_req_t ack,
 
         rc = lnet_send(self, msg);
         if (rc != 0) {
-                CERROR("Error sending PUT to %s: %d\n",
+                CNETERR( "Error sending PUT to %s: %d\n",
                        libcfs_id2str(target), rc);
                 lnet_finalize (NULL, msg, rc);
         }
@@ -2731,7 +2731,7 @@ LNetGet(lnet_nid_t self, lnet_handle_md_t mdh,
 
         rc = lnet_send(self, msg);
         if (rc < 0) {
-                CERROR("error sending GET to %s: %d\n",
+                CNETERR( "Error sending GET to %s: %d\n",
                        libcfs_id2str(target), rc);
                 lnet_finalize (NULL, msg, rc);
         }