[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xenstore: dont increment bool variable
commit 2cb1f77c0494538ede7e44896db70d9cdddbcd66 Author: Juergen Gross <jgross@xxxxxxxx> AuthorDate: Wed Apr 5 15:56:07 2017 +0200 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Wed Apr 5 15:07:45 2017 +0100 xenstore: dont increment bool variable Instead of incrementing a bool variable just set it to true. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/xenstore/xenstored_domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c index 4edd14e..f41cf46 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -934,7 +934,8 @@ void wrl_apply_debit_actual(struct domain *domain) (long)domain->wrl_credit, (long)wrl_reserve); if (domain->wrl_credit < 0) { - if (!domain->wrl_delay_logged++) { + if (!domain->wrl_delay_logged) { + domain->wrl_delay_logged = true; WRL_LOG(now, "domain %ld is affected", (long)domain->domid); } else if (!wrl_log_last_warning) { -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |