lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ