Fix format specifier in dtprobed.c
PATCH 1/1 Fix format specifier in dtprobed.c
From: Eugene Loh <[email protected]>
The format specifier is %i but nprobes is size_t. Some compilers issue warnings. Change the format specifier to match the type.
Signed-off-by Eugene Loh <[email protected]>
--- dtprobed/dtprobed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dtprobed/dtprobed.c +1 -1
@@ -787,7 +787,7 @@ process_dof(pid_t pid, int out, int in, dev_t dev, ino_t inum, dev_t exec_dev,if (dof_stash_push_parsed (&accum, provider) <0 ) goto oom; -fuse_log (FUSE_LOG_DEBUG ,"Parser read: provider %s, %i probes\n" , +fuse_log (FUSE_LOG_DEBUG ,"Parser read: provider %s, %li probes\n" , provider->provider.name, provider->provider.nprobes);for (i =0 ; i < provider->provider.nprobes; i++) {
Signature · 1 line
2.43.5
Quoted 5 lines · On Thu, Feb 20, 2025 at 06:27:30PM -0500, [email protected] wrote:
The format specifier is %i but nprobes is
size_t. Some compilers issue warnings. Change the format specifier to match the type.Signed-off-by Eugene Loh <[email protected]>
Reviewed-by Kris Van Hees <[email protected]>
Quoted 21 lines
--- dtprobed/dtprobed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)dtprobed/dtprobed.c +1
-1@@ -787,7 +787,7 @@ process_dof(pid_t pid, int out, int in, dev_t dev, ino_t inum, dev_t exec_dev,if (dof_stash_push_parsed (&accum, provider) <0 ) goto oom; -fuse_log (FUSE_LOG_DEBUG ,"Parser read: provider %s, %i probes\n" , +fuse_log (FUSE_LOG_DEBUG ,"Parser read: provider %s, %li probes\n" , provider->provider.name, provider->provider.nprobes);for (i =0 ; i < provider->provider.nprobes; i++) {Signature · 1 line
2.43.5