Message ID | 20221115000031.5f2da5dd@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | a60e3a1bd086b730014c2d01b7d822c9b49454ae |
Headers | show |
Series | libtracefs: Have tracefs_tracer_set() return zero on success | expand |
diff --git a/src/tracefs-tools.c b/src/tracefs-tools.c index 489be28a3b94..8e7b46db86e9 100644 --- a/src/tracefs-tools.c +++ b/src/tracefs-tools.c @@ -1055,7 +1055,7 @@ int tracefs_tracer_set(struct tracefs_instance *instance, out: tracefs_put_tracing_file(tracer_path); close(fd); - return ret; + return ret > 0 ? 0 : ret; } int tracefs_tracer_clear(struct tracefs_instance *instance)