You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by rl...@apache.org on 2021/10/12 16:23:49 UTC

[celix] branch etcdlib-linebreaks created (now 2f3247d)

This is an automated email from the ASF dual-hosted git repository.

rlenferink pushed a change to branch etcdlib-linebreaks
in repository https://gitbox.apache.org/repos/asf/celix.git.


      at 2f3247d  Update etcdlib to be consistent with line breaks

This branch includes the following new commits:

     new 2f3247d  Update etcdlib to be consistent with line breaks

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[celix] 01/01: Update etcdlib to be consistent with line breaks

Posted by rl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rlenferink pushed a commit to branch etcdlib-linebreaks
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 2f3247d0feea8a96fbd852390b4f8eee1df9332f
Author: Roy Lenferink <le...@gmail.com>
AuthorDate: Tue Oct 12 18:23:43 2021 +0200

    Update etcdlib to be consistent with line breaks
---
 libs/etcdlib/src/etcd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/etcdlib/src/etcd.c b/libs/etcdlib/src/etcd.c
index 34db079..e2582fa 100644
--- a/libs/etcdlib/src/etcd.c
+++ b/libs/etcdlib/src/etcd.c
@@ -83,7 +83,7 @@ int etcd_init(const char *server, int port, int flags) {
     int status = 0;
     int needed = snprintf(g_etcdlib_host, MAX_GLOBAL_HOSTNAME, "%s", server);
     if (needed > MAX_GLOBAL_HOSTNAME) {
-        fprintf(stderr, "Cannot init global etcdlib with '%s'. hostname len exceeds max (%i)", server,
+        fprintf(stderr, "Cannot init global etcdlib with '%s'. hostname len exceeds max (%i)\n", server,
                 MAX_GLOBAL_HOSTNAME);
         g_etcdlib.host = NULL;
         g_etcdlib.port = 0;
@@ -297,7 +297,7 @@ int etcdlib_get_directory(etcdlib_t *etcdlib, const char *directory, etcdlib_key
             js_index = json_object_get(js_root, ETCD_JSON_INDEX);
         } else {
             retVal = ETCDLIB_RC_ERROR;
-            fprintf(stderr, "[ETCDLIB] Error: %s in js_root not found", ETCD_JSON_NODE);
+            fprintf(stderr, "[ETCDLIB] Error: %s in js_root not found\n", ETCD_JSON_NODE);
         }
         if (js_rootnode != NULL) {
             long long modIndex = 0;
@@ -448,7 +448,7 @@ int etcdlib_refresh(etcdlib_t *etcdlib, const char *key, int ttl) {
             json_decref(root);
         } else {
             retVal = ETCDLIB_RC_ERROR;
-            fprintf(stderr, "[ETCDLIB] Error: %s is not json", reply.memory);
+            fprintf(stderr, "[ETCDLIB] Error: %s is not json\n", reply.memory);
         }
     }