]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: truncate value to original sizing
authorBill Wendling <morbo@google.com>
Mon, 21 Mar 2022 02:31:55 +0000 (19:31 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Mar 2022 09:34:31 +0000 (10:34 +0100)
commit2c912ff28b187aaf25e5f641cfa85b7baa709b34
treee78bc9380ba770dfc5e41900f93efda0f8fb8fa7
parentd6c5765d52435e7856f16097ec17fe5ca0205cc1
bnx2x: truncate value to original sizing

The original behavior was to print out unsigned short or unsigned char
values. The change in commit 509393644864 ("bnx2x: use correct format
characters") prints out the whole value if not truncated. So truncate
the value to an unsigned {short|char} to retain the original behavior.

Fixes: 509393644864 ("bnx2x: use correct format characters")
Link: https://github.com/ClangBuiltLinux/linux/issues/378
Signed-off-by: Bill Wendling <morbo@google.com>
Link: https://lore.kernel.org/r/20220321023155.106066-1-morbo@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c