Merge pull request #21800 from keszybz/net-id-debugging

Add more debugging info to udev builtin net_id
This commit is contained in:
Yu Watanabe
2021-12-18 08:35:08 +09:00
committed by GitHub
5 changed files with 134 additions and 64 deletions
+4
View File
@@ -60,6 +60,10 @@ static inline const char *empty_to_null(const char *p) {
return isempty(p) ? NULL : p;
}
static inline const char *empty_to_na(const char *p) {
return isempty(p) ? "n/a" : p;
}
static inline const char *empty_to_dash(const char *str) {
return isempty(str) ? "-" : str;
}