]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dio: Use tabs and avoid continuation logging in dio_init
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 4 May 2026 08:18:07 +0000 (10:18 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 18 May 2026 09:16:26 +0000 (11:16 +0200)
Indent multiple lines using tabs instead of spaces. Use pr_info() and
avoid continuation logging.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/20260504081804.3260-5-thorsten.blum@linux.dev
[geert: Correct format specifier for u8 dev->ipl]
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/dio/dio.c

index 4a3ddda97d7c5d4f5e0b5fba798f2a25b59be249..7722d9eae6d00a4ff1cd85eaad19829cb7d0eaa1 100644 (file)
@@ -178,7 +178,7 @@ static int __init dio_init(void)
        if (!MACH_IS_HP300)
                return 0;
 
-        printk(KERN_INFO "Scanning for DIO devices...\n");
+       pr_info("Scanning for DIO devices...\n");
 
        /* Initialize the DIO bus */
        INIT_LIST_HEAD(&dio_bus.devices);
@@ -248,17 +248,18 @@ static int __init dio_init(void)
 
                dev->ipl = DIO_IPL(va);
                strscpy(dev->name, dio_getname(dev->id));
-                printk(KERN_INFO "select code %3d: ipl %d: ID %02X", dev->scode, dev->ipl, prid);
                if (DIO_NEEDSSECID(prid))
-                        printk(":%02X", secid);
-                printk(": %s\n", dev->name);
+                       pr_info("select code %3d: ipl %u: ID %02X:%02X: %s\n",
+                               dev->scode, dev->ipl, prid, secid, dev->name);
+               else
+                       pr_info("select code %3d: ipl %u: ID %02X: %s\n",
+                               dev->scode, dev->ipl, prid, dev->name);
 
                if (scode >= DIOII_SCBASE)
                        iounmap(va);
                error = device_register(&dev->dev);
                if (error) {
-                       pr_err("DIO: Error registering device %s\n",
-                              dev->name);
+                       pr_err("DIO: Error registering device %s\n", dev->name);
                        put_device(&dev->dev);
                        continue;
                }