From 5592798865ece858bab2b444bc782d19121e2566 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sat, 6 Feb 2016 17:21:19 -0800 Subject: style: fix missing spaces in control statements Result of running 'hg m5style --skip-all --fix-control -a'. --- tests/test-progs/mwait/mwait.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test-progs/mwait') diff --git a/tests/test-progs/mwait/mwait.c b/tests/test-progs/mwait/mwait.c index f5ce3c32b..e1b203545 100644 --- a/tests/test-progs/mwait/mwait.c +++ b/tests/test-progs/mwait/mwait.c @@ -44,7 +44,7 @@ int main( int argc, char** argv) // invalidate flags in this cpu's cache pthread_create(&threads[0], NULL, DoWork1, NULL); - while(wait[0]); + while (wait[0]); // launch thread to invalidate address being monitored pthread_create(&threads[0], NULL, DoWork2, NULL); @@ -53,17 +53,17 @@ int main( int argc, char** argv) int mwait_cnt = 0; do { pthread_mutex_lock (&mutex); - if(flags[0] != 2) { + if (flags[0] != 2) { pthread_mutex_unlock (&mutex); __builtin_ia32_mwait(0, 0); } else { pthread_mutex_unlock (&mutex); } mwait_cnt++; - } while(flags[0] != 2 && mwait_cnt < NUM_TRIES); + } while (flags[0] != 2 && mwait_cnt < NUM_TRIES); // test may hang if mwait is not working - if(flags[0]==2) { + if (flags[0]==2) { printf("mwait regression PASSED, flags[0] = %d\n", flags[0]); } else { printf("mwait regression FAILED, flags[0] = %d\n", flags[0]); -- cgit v1.2.3