aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-10 09:51:39 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-10 11:13:50 -0800
commitb32196e35bd7bbc8038db1aba1fbf022dc469b6a (patch)
tree57775a7010c5bf8a17811d01c190562212d1a5ca /include/linux
parentusb: phy: tegra: Add clarifying comments about the shared registers (diff)
downloadlinux-dev-b32196e35bd7bbc8038db1aba1fbf022dc469b6a.tar.xz
linux-dev-b32196e35bd7bbc8038db1aba1fbf022dc469b6a.zip
usb: dwc3: debug: fix string position formatting mixup with ret and len
Currently the string formatting is mixing up the offset of ret and len. Re-work the code to use just len, remove ret and use scnprintf instead of snprintf and len position accumulation where required. Remove the -ve return check since scnprintf never returns a failure -ve size. Also break overly long lines to clean up checkpatch warnings. Addresses-Coverity: ("Unused value") Fixes: 1381a5113caf ("usb: dwc3: debug: purge usage of strcat") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200210095139.328711-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions