Skip to contentSkip to conversation

tools/xenstore: add newline for printing of stubdom console messages

PATCH In review Juergen Gross 2 participants 2 messages Jan 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/xenstore: add newline for printing of stubdom console messages

There are several places in xenstore-stubdom where newlines at the end of messages on the console are missing. Add them.

---
 tools/libs/evtchn/minios.c      | 1 +
 tools/xenstore/xenstored_core.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
tools/libs/evtchn/minios.c +1 -0
index 414c21ba67..9cd7636fc5 100644
@@ -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);
tools/xenstore/xenstored_core.c +1 -1
index 97ceabf964..551fe38f57 100644
@@ -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");	\
Signature · 7 lines
2.16.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel