From: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] examples/pipeline: add newline to error messages
Date: Wed, 31 Mar 2021 14:51:53 +0100 [thread overview]
Message-ID: <20210331135153.63108-1-cristian.dumitrescu@intel.com> (raw)
Add newline to some error messages that were missing it.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
examples/pipeline/cli.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c
index 9d7d69d34..ef47febaa 100644
--- a/examples/pipeline/cli.c
+++ b/examples/pipeline/cli.c
@@ -1088,7 +1088,7 @@ cmd_pipeline_table_update(char **tokens,
if (strcmp(file_name_add, "none")) {
file_add = fopen(file_name_add, "r");
if (!file_add) {
- snprintf(out, out_size, "Cannot open file %s",
+ snprintf(out, out_size, "Cannot open file %s.\n",
file_name_add);
goto error;
}
@@ -1097,7 +1097,7 @@ cmd_pipeline_table_update(char **tokens,
if (strcmp(file_name_delete, "none")) {
file_delete = fopen(file_name_delete, "r");
if (!file_delete) {
- snprintf(out, out_size, "Cannot open file %s",
+ snprintf(out, out_size, "Cannot open file %s.\n",
file_name_delete);
goto error;
}
@@ -1106,7 +1106,7 @@ cmd_pipeline_table_update(char **tokens,
if (strcmp(file_name_default, "none")) {
file_default = fopen(file_name_default, "r");
if (!file_default) {
- snprintf(out, out_size, "Cannot open file %s",
+ snprintf(out, out_size, "Cannot open file %s.\n",
file_name_default);
goto error;
}
--
2.17.1
next reply other threads:[~2021-03-31 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-31 13:51 Cristian Dumitrescu [this message]
2021-04-20 0:50 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210331135153.63108-1-cristian.dumitrescu@intel.com \
--to=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).