[riot-notifications] [RIOT-OS/RIOT] tests/thread_float: improve console output (#16901)

Marian Buschsieweke notifications at github.com
Tue Sep 28 19:10:28 CEST 2021


@maribu commented on this pull request.



>      f = init;
 
     while (1) {
         for (unsigned long i = 0; i < 10000ul; i++) {
             f = f + 1.0 / f;
         }
         mutex_lock(&lock);
-        printf("T(%" PRIkernel_pid "): %f\n", thread_getpid(), (double)f);
+        printf("%s: %f\n", arg, (double)f);
         mutex_unlock(&lock);
         init += 1.0;

No, it should yield different results due to this. But the test will be better without :-)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16901#pullrequestreview-765728884
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210928/27181963/attachment.htm>


More information about the notifications mailing list