diff options
author | Chen Zhou <chenzhou10@huawei.com> | 2020-01-20 13:50:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-21 10:48:40 +0100 |
commit | bea5416561b1b997adbe3a04a5665e647c589a13 (patch) | |
tree | 3c4b8f4d0e7cadc32b8127bd8b062854dfdf7181 /net/ceph/auth_none.c | |
parent | net: hns3: replace snprintf with scnprintf in hns3_dbg_cmd_read (diff) | |
download | linux-bea5416561b1b997adbe3a04a5665e647c589a13.tar.xz linux-bea5416561b1b997adbe3a04a5665e647c589a13.zip |
net: hns3: replace snprintf with scnprintf in hns3_update_strings
snprintf returns the number of bytes that would be written, which may be
greater than the the actual length to be written. Here use extra code to
handle this.
scnprintf returns the number of bytes that was actually written, just use
scnprintf to simplify the code.
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ceph/auth_none.c')
0 files changed, 0 insertions, 0 deletions