]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: most: dim2: move extra info messages to dev_dbg
authorZeeshan Ahmad <zeeshanahmad022019@gmail.com>
Tue, 10 Feb 2026 06:51:20 +0000 (11:51 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:01:04 +0000 (15:01 +0100)
The dim2 driver is currently too talkative in the system logs.
Informational messages such as node addresses and state changes
are useful for developers but provide unnecessary noise for
regular users during normal operation.

Move these non-critical info messages to the debug level using
dev_dbg(). This ensures a quiet log by default while preserving
the information for debugging purposes.

Signed-off-by: Zeeshan Ahmad <zeeshanahmad022019@gmail.com>
Link: https://patch.msgid.link/20260210065121.3661-2-zeeshanahmad022019@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c

index 8d649d9204338c64189a947c55963039a7371f57..e651944d9dc4dfe7847adb070d2bebe215ce04d1 100644 (file)
@@ -246,9 +246,9 @@ static void retrieve_netinfo(struct dim2_hdm *dev, struct mbo *mbo)
 {
        u8 *data = mbo->virt_address;
 
-       pr_info("Node Address: 0x%03x\n", (u16)data[16] << 8 | data[17]);
+       dev_dbg(&dev->dev, "Node Address: 0x%03x\n", (u16)data[16] << 8 | data[17]);
        dev->link_state = data[18];
-       pr_info("NIState: %d\n", dev->link_state);
+       dev_dbg(&dev->dev, "NIState: %d\n", dev->link_state);
        memcpy(dev->mac_addrs, data + 19, 6);
        dev->deliver_netinfo++;
        wake_up_interruptible(&dev->netinfo_waitq);
@@ -799,8 +799,7 @@ static int dim2_probe(struct platform_device *pdev)
                        dev_fcnt = pdata->fcnt;
        }
 
-       dev_info(&pdev->dev, "sync: num of frames per sub-buffer: %u\n",
-                dev_fcnt);
+       dev_dbg(&pdev->dev, "sync: num of frames per sub-buffer: %u\n", dev_fcnt);
        hal_ret = dim_startup(dev->io_base, dev->clk_speed, dev_fcnt);
        if (hal_ret != DIM_NO_ERROR) {
                dev_err(&pdev->dev, "dim_startup failed: %d\n", hal_ret);