Changeset 1b20da0 in mainline for uspace/app/rcutest/rcutest.c


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/rcutest/rcutest.c

    rdf6ded8 r1b20da0  
    186186/*--------------------------------------------------------------------*/
    187187
    188 static bool run_tests(test_info_t *info, bool (*include_filter)(test_desc_t *)) 
     188static bool run_tests(test_info_t *info, bool (*include_filter)(test_desc_t *))
    189189{
    190190        size_t failed_cnt = 0;
     
    214214        if (failed_cnt) {
    215215                printf("%zu tests failed\n", failed_cnt);
    216         } 
     216        }
    217217       
    218218        return 0 == failed_cnt;
     
    364364        if (!info.exited_cs || info.failed) {
    365365                printf("Error: rcu_sync() returned before the reader exited its CS.\n");
    366                 /* 
    367                  * Sleep some more so we don't free info on stack while the reader 
     366                /*
     367                 * Sleep some more so we don't free info on stack while the reader
    368368                 * is using it.
    369369                 */
     
    440440        }
    441441       
    442         /* 
     442        /*
    443443         * synching is set when rcu_sync() is about to be entered so wait
    444444         * some more to make sure it really does start executing.
     
    459459        memory_barrier();
    460460       
    461         /* 
    462          * Preexisting reader should have exited by now, so rcu_synchronize() 
     461        /*
     462         * Preexisting reader should have exited by now, so rcu_synchronize()
    463463         * must have returned.
    464464         */
     
    529529       
    530530        if (info.failed) {
    531                 /* 
    532                  * Sleep some more so we don't free info on stack while readers 
     531                /*
     532                 * Sleep some more so we don't free info on stack while readers
    533533                 * are using it.
    534534                 */
     
    608608                printf("Error: rcu_deregister_fibril did not unlock the CS.\n");
    609609                return false;
    610         }       
     610        }
    611611       
    612612        return true;
     
    672672                }
    673673               
    674                 /* 
     674                /*
    675675                 * Check if the most recently started rcu_sync of the already
    676676                 * finished rcu_syncs did not happen to start after this reader
     
    713713static bool seq_test(test_info_t *test_info)
    714714{
    715         size_t reader_cnt = test_info->thread_cnt; 
    716         size_t updater_cnt = test_info->thread_cnt; 
     715        size_t reader_cnt = test_info->thread_cnt;
     716        size_t updater_cnt = test_info->thread_cnt;
    717717               
    718718        seq_test_info_t info = {
     
    820820                test_desc_t *t = &test_desc[i];
    821821               
    822                 if (!t->func) 
     822                if (!t->func)
    823823                        continue;
    824824               
     
    870870                        info->thread_cnt = 1;
    871871                        printf("Err: Invalid number of threads '%s'; using 1.\n", argv[2]);
    872                 } 
     872                }
    873873        } else {
    874874                info->thread_cnt = 1;
Note: See TracChangeset for help on using the changeset viewer.