]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
s390/vmlogrdr: Use internal_name for error messages
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 24 Jan 2025 13:51:53 +0000 (14:51 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 29 Jan 2025 12:44:21 +0000 (13:44 +0100)
Use the internal_name member of vmlogrdr_priv_t to print error messages
instead of the system_service member. The system_service member is not a
string, but a non-null terminated eight byte character array, which
contains the ASCII representation of a z/VM system service.

Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/char/vmlogrdr.c

index 3dd50ac9c5b0d0d682656117eb258f747ba4fe9d..374f06c77a864170baf8ba2539c8f0011c113ddf 100644 (file)
@@ -356,7 +356,7 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
        if (connect_rc) {
                pr_err("vmlogrdr: iucv connection to %s "
                       "failed with rc %i \n",
-                      logptr->system_service, connect_rc);
+                      logptr->internal_name, connect_rc);
                goto out_path;
        }