Skip to content

Commit

Permalink
trace2: fix signature of trace2_def_param() macro
Browse files Browse the repository at this point in the history
Add `struct key_value_info` argument to `trace2_def_param()`.

In dc90208 (trace2: plumb config kvi, 2023-06-28) a `kvi`
argument was added to `trace2_def_param_fl()` but the macro
was not up updated. Let's fix that.

Signed-off-by: Jeff Hostetler <jeffhostetler@github.com>
  • Loading branch information
jeffhostetler committed Nov 6, 2023
1 parent 6a7e6c7 commit 49d97ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trace2.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ struct key_value_info;
void trace2_def_param_fl(const char *file, int line, const char *param,
const char *value, const struct key_value_info *kvi);

#define trace2_def_param(param, value) \
trace2_def_param_fl(__FILE__, __LINE__, (param), (value))
#define trace2_def_param(param, value, kvi) \
trace2_def_param_fl(__FILE__, __LINE__, (param), (value), (kvi))

/*
* Tell trace2 about a newly instantiated repo object and assign
Expand Down

0 comments on commit 49d97ff

Please sign in to comment.