[1/3] alfred: vis: Use debugfs_make_path helper
Commit Message
By using the helper, knowledge of network namespaces can be kept to
within the helper.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
---
vis/vis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thursday 28 January 2016 04:53:13 Andrew Lunn wrote:
> By using the helper, knowledge of network namespaces can be kept to
> within the helper.
I've applied this one, since its a good change even without the namespace
changes.
Applied in revision dca3ebf
Thanks!
Simon
@@ -325,7 +325,7 @@ static int parse_orig_list(struct globals *globals)
char path[1024];
struct vis_list_entry *v_entry;
- snprintf(path, sizeof(path), "/sys/kernel/debug/batman_adv/%s/originators", globals->interface);
+ debugfs_make_path(DEBUG_BATIF_PATH_FMT "/" "originators", globals->interface, path, sizeof(path));
fbuf = read_file(path);
if (!fbuf)
return -1;