[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6d5c7557-008b-49f5-bedc-912d5c198924@lunn.ch>
Date: Wed, 30 Jul 2025 18:40:43 +0200
From: Andrew Lunn <andrew@...n.ch>
To: _ <j9@...ip.com>
Cc: netdev@...r.kernel.org
Subject: Re: no printk output in dmesg
On Tue, Jul 29, 2025 at 07:26:12PM -0400, _ wrote:
> Hi
>
> In "stmmac_main.c", in function "stmmac_dvr_probe", after probing is done
> and "ret = register_netdev(ndev);" is successfully executed I try this
>
> netdev_info(priv->dev, "%s:%d", __func__, __LINE__);
> netdev_alert(priv->dev, "%s:%d", __func__, __LINE__);
> printk(KERN_ALERT "%s : %d", __func__, __LINE__);
It would be normal to end the strings with "\n". The low level kernel
print function has some ability to glue together a line from multiple
parts. It could be without the \n the message is not getting flushed
out the console device, etc.
Andrew
Powered by blists - more mailing lists