Use log functions instead of perror.
Signed-off-by: Stephen Hemminger <[email protected]>
---
drivers/common/dpaax/dpaa_of.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/dpaax/dpaa_of.c b/drivers/common/dpaax/dpaa_of.c
index 23035f530d..d44c893bb4 100644
--- a/drivers/common/dpaax/dpaa_of.c
+++ b/drivers/common/dpaax/dpaa_of.c
@@ -117,7 +117,7 @@ iterate_dir(struct dirent **d, int num, struct dt_dir *dt)
case DT_DIR:
subdir = malloc(sizeof(*subdir));
if (!subdir) {
- perror("malloc");
+ DPAAX_LOG(ERR, "malloc failed");
return -ENOMEM;
}
strlcpy(subdir->node.node.name, d[loop]->d_name,
--
2.51.0