Thread (6 messages) 6 messages, 5 authors, 2021-02-23

Re: [PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

flat view

From: "Enrico Weigelt, metux IT consult" <info@metux.net>
Date: 2021-02-23 19:58:23
Also in: bpf, netdev

On 18.02.21 13:53, Petr Mladek wrote:
Please, use

	if (check_pointer(&buf, end, p, spec))
		return buf;

It will print "(null)" instead of the name. It should be enough
to inform the user this way. The extra pr_warn() does not help
much to localize the problem anyway. And it is better to avoid
recursion in this path.
thx, going to use it in v2.


--mtx

-- 
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help