mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
819baf8859
This is a static checker warning, not something I'm desperately concerned about. But snprintf() returns the number of bytes that would have been copied if there were space. We really care about the number of bytes that actually were copied so we should use scnprintf() instead. It probably won't overrun, and in that case we may as well just use sprintf() but these sorts of things make static checkers and code reviewers happier. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Jon Mason <jdmason@kudzu.us> |
||
---|---|---|
.. | ||
hw | ||
test | ||
Kconfig | ||
Makefile | ||
ntb_transport.c | ||
ntb.c |