Whamcloud - gitweb
LU-17844 lnds: remove a few LCONSOLE_ERROR_MSG() 85/55085/3
authorTimothy Day <timday@amazon.com>
Mon, 13 May 2024 03:51:16 +0000 (03:51 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:51:05 +0000 (04:51 +0000)
I doubt these magic numbers help anyone.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I7c2505ec0eb7fc6524a13d4bf330a72188a26b4e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55085
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd_cb.c

index 6ad06f8..b05eb12 100644 (file)
@@ -3495,13 +3495,12 @@ kiblnd_cm_callback(struct rdma_cm_id *cmid, struct rdma_cm_event *event)
                 cmid->context = NULL;
                 return 0;
 
-        case RDMA_CM_EVENT_DEVICE_REMOVAL:
-                LCONSOLE_ERROR_MSG(0x131,
-                                   "Received notification of device removal\n"
-                                   "Please shutdown LNET to allow this to proceed\n");
-                /* Can't remove network from underneath LNET for now, so I have
-                 * to ignore this */
-                return 0;
+       case RDMA_CM_EVENT_DEVICE_REMOVAL:
+               LCONSOLE_ERROR("Received notification of device removal - Please shutdown LNET to allow this to proceed\n");
+               /* Can't remove network from underneath LNET for now, so I have
+                * to ignore this
+                */
+               return 0;
 
         case RDMA_CM_EVENT_ADDR_CHANGE:
                 LCONSOLE_INFO("Physical link changed (eg hca/port)\n");
index 0a89ead..36f5104 100644 (file)
@@ -761,9 +761,8 @@ ksocknal_accept(struct lnet_ni *ni, struct socket *sock)
 
        LIBCFS_ALLOC(cr, sizeof(*cr));
        if (cr == NULL) {
-               LCONSOLE_ERROR_MSG(0x12f,
-                                  "Dropping connection request from %pISc: memory exhausted\n",
-                                  &peer);
+               LCONSOLE_ERROR("Dropping connection request from %pISc: memory exhausted\n",
+                              &peer);
                return -ENOMEM;
        }
 
index 6e361b6..63ea497 100644 (file)
@@ -1896,11 +1896,10 @@ out_fatal:
 
        if (peerid->pid != recv_id.pid ||
            !nid_same(&peerid->nid,  &recv_id.nid)) {
-               LCONSOLE_ERROR_MSG(0x130,
-                                  "Connected successfully to %s on host %pISc, but they claimed they were %s; please check your Lustre configuration.\n",
-                                  libcfs_idstr(peerid),
-                                  &conn->ksnc_peeraddr,
-                                  libcfs_idstr(&recv_id));
+               LCONSOLE_ERROR("Connected successfully to %s on host %pISc, but they claimed they were %s; please check your Lustre configuration.\n",
+                              libcfs_idstr(peerid),
+                              &conn->ksnc_peeraddr,
+                              libcfs_idstr(&recv_id));
                return -EPROTO;
        }