diff options
author | 2023-11-10 20:59:22 +0100 | |
---|---|---|
committer | 2024-01-29 12:05:09 +0300 | |
commit | 622cd3daa8eae37359a6fd3c07c36d19f66606b5 (patch) | |
tree | 06ff826de6cbaa2e0a6822b2d90489c707d561ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs/ntfs3: Add ioctl operation for directories (FITRIM) (diff) | |
download | linux-rng-622cd3daa8eae37359a6fd3c07c36d19f66606b5.tar.xz linux-rng-622cd3daa8eae37359a6fd3c07c36d19f66606b5.zip |
fs/ntfs3: Slightly simplify ntfs_inode_printk()
The size passed to snprintf() includes the space for the trailing space.
So there is no reason here not to use all the available space.
So remove the -1 when computing 'name_len'.
While at it, use the size of the array directly instead of the intermediate
'name_len' variable.
snprintf() also guaranties that the buffer if NULL terminated, so there is
no need to write an additional trailing NULL "To be sure".
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions