Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit dca3ebf5e44e421f5b5c9ac29efa61021d9b6bcb Author: Andrew Lunn andrew@lunn.ch Date: Thu Jan 28 04:53:13 2016 +0100
alfred: vis: Use debugfs_make_path helper
By using the helper, knowledge of network namespaces can be kept to within the helper.
Signed-off-by: Andrew Lunn andrew@lunn.ch Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
dca3ebf5e44e421f5b5c9ac29efa61021d9b6bcb vis/vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis/vis.c b/vis/vis.c index 753cb91..4d494bc 100644 --- a/vis/vis.c +++ b/vis/vis.c @@ -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;