Skip to content

Commit

Permalink
devlink: Fix TP_STRUCT_entry in trace of devlink health report
Browse files Browse the repository at this point in the history
Fix a bug in trace point definition for devlink health report, as
TP_STRUCT_entry of reporter_name should get reporter_name and not msg.

Note no fixes tag as this is a harmless bug as both reporter_name and
msg are strings and TP_fast_assign for this entry is correct.

Signed-off-by: Moshe Shemesh <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
mosheshemesh2 authored and kuba-moo committed Feb 16, 2023
1 parent c745cfb commit d0ab772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/trace/events/devlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ TRACE_EVENT(devlink_health_report,
__string(bus_name, devlink_to_dev(devlink)->bus->name)
__string(dev_name, dev_name(devlink_to_dev(devlink)))
__string(driver_name, devlink_to_dev(devlink)->driver->name)
__string(reporter_name, msg)
__string(reporter_name, reporter_name)
__string(msg, msg)
),

Expand Down

0 comments on commit d0ab772

Please sign in to comment.