projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
045d5d1
)
xenstore: dont increment bool variable
author
Juergen Gross
<jgross@suse.com>
Wed, 5 Apr 2017 13:56:07 +0000
(15:56 +0200)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 14:07:45 +0000
(15:07 +0100)
Instead of incrementing a bool variable just set it to true.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenstore/xenstored_domain.c
patch
|
blob
|
history
diff --git
a/tools/xenstore/xenstored_domain.c
b/tools/xenstore/xenstored_domain.c
index 4edd14eb4f358f37a9e332bbb9398ea67f6a79fd..f41cf46ceda749744c5caf9cd45dc443f8a8aba8 100644
(file)
--- 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) {