Skip to content
Commit d7ae1609 authored by Simon Glass's avatar Simon Glass Committed by Alexander Graf
Browse files

vsprintf: Handle NULL with %pU



At present a NULL pointer passed to printf for a %pU argument will cause
U-Boot to access memory at 0. Fix this by adding a check, and print
"(null)" instead.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
[agraf: s/(null)/<NULL>/]
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 282a06cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment