]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
tools/xenstore: add newline for printing of stubdom console messages
authorJuergen Gross <jgross@suse.com>
Fri, 31 Jan 2020 14:25:09 +0000 (15:25 +0100)
committerWei Liu <wl@xen.org>
Fri, 31 Jan 2020 16:12:37 +0000 (16:12 +0000)
There are several places in xenstore-stubdom where newlines at the end
of messages on the console are missing. Add them.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/evtchn/minios.c
tools/xenstore/xenstored_core.c

index 414c21ba6720ffdcd1095f8a9c696bad76716d5b..9cd7636fc5b9f5ccd20bcb211ea36175b2f4af61 100644 (file)
@@ -218,6 +218,7 @@ xenevtchn_port_or_error_t xenevtchn_bind_virq(xenevtchn_handle *xce, unsigned in
 
     printf("xenevtchn_bind_virq(%d)", virq);
     port = bind_virq(virq, evtchn_handler, (void*)(intptr_t)fd);
+    printf(" = %d\n", port);
 
     if (port < 0) {
         port_dealloc(port_info);
index 97ceabf9642d91945dd6e0ded3c5a0bc33764c2d..551fe38f579d92b779477970aa1e5442098921a2 100644 (file)
@@ -88,7 +88,7 @@ static const char *sockmsg_string(enum xsd_sockmsg_type type);
                char *s = talloc_asprintf(NULL, __VA_ARGS__);           \
                if (s) {                                                \
                        trace("%s\n", s);                               \
-                       syslog(LOG_ERR, "%s",  s);                      \
+                       syslog(LOG_ERR, "%s\n",  s);                    \
                        talloc_free(s);                                 \
                } else {                                                \
                        trace("talloc failure during logging\n");       \