From 062cab09cfc41813c83679cd13060dbd64ce14c1 Mon Sep 17 00:00:00 2001 From: Otavio Pontes Date: Thu, 14 May 2020 08:38:07 -0700 Subject: [PATCH] curl: Remove '*' character in error output Signed-off-by: Otavio Pontes --- src/swupd_lib/curl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/swupd_lib/curl.c b/src/swupd_lib/curl.c index 5fa528b2..af6abf4c 100644 --- a/src/swupd_lib/curl.c +++ b/src/swupd_lib/curl.c @@ -380,7 +380,7 @@ CURLcode swupd_download_file_create(struct curl_file *file) { file->fh = fopen(file->path, "w"); if (!file->fh) { - error("Curl - Cannot open file for write \\*outfile=\"%s\",strerror=\"%s\"*\\\n", + error("Curl - Cannot open file '%s' for writing - '%s'\n", file->path, strerror(errno)); return CURLE_WRITE_ERROR; } @@ -391,7 +391,7 @@ CURLcode swupd_download_file_append(struct curl_file *file) { file->fh = fopen(file->path, "a"); if (!file->fh) { - error("Curl - Cannot open file for append \\*outfile=\"%s\",strerror=\"%s\"*\\\n", + error("Curl - Cannot open file '%s' for appending - '%s'\n", file->path, strerror(errno)); return CURLE_WRITE_ERROR; } @@ -402,7 +402,7 @@ CURLcode swupd_download_file_close(CURLcode curl_ret, struct curl_file *file) { if (file->fh) { if (fclose(file->fh)) { - error("Curl - Cannot close file after write \\*outfile=\"%s\",strerror=\"%s\"*\\\n", + error("Curl - Cannot close file '%s' after writing - '%s'\n", file->path, strerror(errno)); if (curl_ret == CURLE_OK) { curl_ret = CURLE_WRITE_ERROR;