From 304d851a5da3cab44e9099f0c298f83a680567a0 Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 14 Dec 2017 09:32:48 +0900 Subject: [PATCH] lib/event/app: Remove use of perror() for malloc() failure All SPDK libraries should use the spdk/log.h family of functions for logging. Change-Id: I4b9f172102c6d7998d3a634573493db3fe25ff76 Signed-off-by: Shuhei Matsumoto Reviewed-on: https://review.gerrithub.io/391686 Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris Reviewed-by: Ben Walker Tested-by: SPDK Automated Test System --- lib/event/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/event/app.c b/lib/event/app.c index fce357b77..ca43561e3 100644 --- a/lib/event/app.c +++ b/lib/event/app.c @@ -143,7 +143,7 @@ spdk_app_get_running_config(char **config_str, char *name) *config_str = malloc(length + 1); if (!*config_str) { - perror("config_str"); + SPDK_ERRLOG("out-of-memory for config\n"); fclose(fp); return -1; }