[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] tools: add newlines to xenstored WRL_LOG



commit 982c89ed527bc5b0ffae5da9fd33f9d2d1528f06
Author:     Olaf Hering <olaf@xxxxxxxxx>
AuthorDate: Mon May 3 17:47:12 2021 +0200
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon May 10 14:51:52 2021 +0100

    tools: add newlines to xenstored WRL_LOG
    
    According to syslog(3) the fmt string does not need a newline.
    The mini-os implementation of syslog requires the trailing newline.
    Other calls to syslog do include the newline already, add it also to 
WRL_LOG.
    
    Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
    Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
---
 tools/xenstore/xenstored_domain.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/xenstore/xenstored_domain.c 
b/tools/xenstore/xenstored_domain.c
index 3d4d0649a2..2d333b3ff6 100644
--- a/tools/xenstore/xenstored_domain.c
+++ b/tools/xenstore/xenstored_domain.c
@@ -1132,10 +1132,10 @@ void wrl_apply_debit_actual(struct domain *domain)
        if (domain->wrl_credit < 0) {
                if (!domain->wrl_delay_logged) {
                        domain->wrl_delay_logged = true;
-                       WRL_LOG(now, "domain %ld is affected",
+                       WRL_LOG(now, "domain %ld is affected\n",
                                (long)domain->domid);
                } else if (!wrl_log_last_warning) {
-                       WRL_LOG(now, "rate limiting restarts");
+                       WRL_LOG(now, "rate limiting restarts\n");
                }
                wrl_log_last_warning = now.sec;
        }
@@ -1145,7 +1145,7 @@ void wrl_log_periodic(struct wrl_timestampt now)
 {
        if (wrl_log_last_warning &&
            (now.sec - wrl_log_last_warning) > WRL_LOGEVERY) {
-               WRL_LOG(now, "not in force recently");
+               WRL_LOG(now, "not in force recently\n");
                wrl_log_last_warning = 0;
        }
 }
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.