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 <[email protected]> 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); } }
