[lldp-devel] [PATCH 4/9] minor fix:correct config file create error message

Jens Osterkamp jens at linux.vnet.ibm.com
Mon Aug 15 15:19:24 UTC 2011


In case lldpad.conf cannot be created, add a line break to error message.

Signed-off-by: Jens Osterkamp <jens at linux.vnet.ibm.com>
---
 config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config.c b/config.c
index 4c82bb6..648f6f9 100644
--- a/config.c
+++ b/config.c
@@ -201,7 +201,7 @@ int check_cfg_file(void)
 				O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
 			if (fd < 0) {
 				retval = errno;
-				LLDPAD_ERR("error creating %s", cfg_file_name);
+				LLDPAD_ERR("error creating %s !\n", cfg_file_name);
 			} else {
 				close(fd);
 				create_default_cfg_file();
-- 
1.7.4.4




More information about the lldp-devel mailing list