[XEN][PATCH 2/2] xenstored: Add newline to error message

Jason Andryuk posted 2 patches 2 weeks, 5 days ago
[XEN][PATCH 2/2] xenstored: Add newline to error message
Posted by Jason Andryuk 2 weeks, 5 days ago
Unlike barf(), xprintf() does not add a newline.  Add one.

Fixes: e5b0a9405571 ("tools/xenstored: Auto-introduce domains")
Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
---
 tools/xenstored/domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xenstored/domain.c b/tools/xenstored/domain.c
index d504e9994b..10ac1c1a8f 100644
--- a/tools/xenstored/domain.c
+++ b/tools/xenstored/domain.c
@@ -1333,7 +1333,7 @@ static bool init_domain(unsigned int domid)
 
 	domain = introduce_domain(NULL, domid, port, false);
 	if (!domain) {
-		xprintf("Could not initialize dom%u", domid);
+		xprintf("Could not initialize dom%u\n", domid);
 		return false;
 	}
 
-- 
2.51.1
Re: [XEN][PATCH 2/2] xenstored: Add newline to error message
Posted by Jürgen Groß 2 weeks, 4 days ago
On 24.11.25 23:35, Jason Andryuk wrote:
> Unlike barf(), xprintf() does not add a newline.  Add one.
> 
> Fixes: e5b0a9405571 ("tools/xenstored: Auto-introduce domains")
> Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen