summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/xprintf.c
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-01-09 02:25:19 +0000
committerloos <loos@FreeBSD.org>2015-01-09 02:25:19 +0000
commit2b55fce49f93314345fff2d2bf9af96c8445a8d8 (patch)
tree2fb16f9e5a2b620c18b553496a981631866cce55 /lib/libc/stdio/xprintf.c
parent27e2f26e1531b869ff531fab5ac3ef06aae4d4f4 (diff)
downloadFreeBSD-src-2b55fce49f93314345fff2d2bf9af96c8445a8d8.zip
FreeBSD-src-2b55fce49f93314345fff2d2bf9af96c8445a8d8.tar.gz
MFC r273329, r273337 and r274415
Add another wakeup() after actually set the bus as free. This fix a race where the threads waiting for the bus would wake up early and still see bus as busy. While here, give a better description to wmesg for the two use cases we have (bus and io waiting). Fix the mtx_sleep() error checking, catch all errors and not only EWOULDBLOCK. Do not print any message at errors. The errors are properly sent to upper layers which should be able to deal with it, including printing the errors when they need to. The error message was quite annoying while scanning the i2c bus.
Diffstat (limited to 'lib/libc/stdio/xprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud