X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.cpp;fp=src%2Fbin%2Flttng%2Fconf.cpp;h=81aa654384c97bbccf0360be39d91a2e7326f230;hb=dcffe9462d11f9de5b441b801da5b2b7ae42c79a;hp=65be35a158f70518dda1317f78900347ba67b117;hpb=ac559d09a23994f9f52014b0efba3a3c566dcfea;p=lttng-tools.git diff --git a/src/bin/lttng/conf.cpp b/src/bin/lttng/conf.cpp index 65be35a15..81aa65438 100644 --- a/src/bin/lttng/conf.cpp +++ b/src/bin/lttng/conf.cpp @@ -54,6 +54,7 @@ static FILE *open_config(const char *path, const char *mode) fp = fopen(file_path, mode); if (fp == nullptr) { + PWARN("Failed to open configuration file '%s'", file_path); goto error; } @@ -74,7 +75,6 @@ static int create_config_file(const char *path) fp = open_config(path, "w+"); if (fp == nullptr) { - ERR("Unable to create config file"); ret = -1; goto error; }