vppinfra: add clib_file_get_resolved_basename
more generic version of clib_sysfs_link_to_name with support for format strings... Type: improvement Change-Id: I0cb263748970378c661415196eb7e08450370677 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
993735913c
commit
40f481037e
@@ -882,7 +882,7 @@ sysfs_path_to_pci_addr (char *path, vlib_pci_addr_t * addr)
|
||||
unformat_input_t in;
|
||||
u8 *s;
|
||||
|
||||
s = clib_sysfs_link_to_name (path);
|
||||
s = clib_file_get_resolved_basename (path);
|
||||
if (!s)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user