DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/pipeline: add newline to error messages
@ 2021-03-31 13:51 Cristian Dumitrescu
  2021-04-20  0:50 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Dumitrescu @ 2021-03-31 13:51 UTC (permalink / raw)
  To: dev

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/pipeline: add newline to error messages
  2021-03-31 13:51 [dpdk-dev] [PATCH] examples/pipeline: add newline to error messages Cristian Dumitrescu
@ 2021-04-20  0:50 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2021-04-20  0:50 UTC (permalink / raw)
  To: Cristian Dumitrescu; +Cc: dev

31/03/2021 15:51, Cristian Dumitrescu:
> Add newline to some error messages that were missing it.
> 
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

Applied, thanks



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-20  0:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 13:51 [dpdk-dev] [PATCH] examples/pipeline: add newline to error messages Cristian Dumitrescu
2021-04-20  0:50 ` Thomas Monjalon

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).