aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2024-02-21 17:27:15 +0800
committerShuah Khan <skhan@linuxfoundation.org>2024-02-27 15:25:56 -0700
commitd2733a026fc7247ba42d7a8e1b737cf14bf1df21 (patch)
treeae27a973fd63835c4ff8d9026849dd787738a7ff /drivers/fpga/altera-fpga2sdram.c
parent6f2f793fba78eb4a0d5a34a71bc781118ed923d3 (diff)
lib/cmdline: Fix an invalid format specifier in an assertion msg
The correct format specifier for p - n (both p and n are pointers) is %td, as the type should be ptrdiff_t. This was discovered by annotating KUnit assertion macros with gcc's printf specifier, but note that gcc incorrectly suggested a %d or %ld specifier (depending on the pointer size of the architecture being built). Fixes: 0ea09083116d ("lib/cmdline: Allow get_options() to take 0 to validate the input") Signed-off-by: David Gow <davidgow@google.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Daniel Latypov <dlatypov@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions