summaryrefslogtreecommitdiff
path: root/src/udev/ata_id/ata_id.c
AgeCommit message (Collapse)Author
2014-11-28treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt
If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments.
2014-11-13udev: switch to systemd logging functionsKay Sievers
2014-08-11udev: never bypass our own logging framework and call vsyslog() directly ↵Lennart Poettering
from udev tools
2014-02-13everywhere: always use O_CLOEXEC where it makes senseLennart Poettering
2013-12-24log: log_error() and friends add a newline after each line anyway, so avoid ↵Lennart Poettering
including it in the log strings
2013-12-14Add more _printf_'s for format-nonliteralsThomas Hindoe Paaboel Andersen
Clang is a bit more strict wrt format-nonliterals: http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking Adding these extra printf attributes also makes gcc able to find more problems. E.g. this patch uncovers a format issue in udev-builtin-path_id.c Some parts looked intetional about breaking the format-nonliteral check. I added some supression for warnings there.
2013-10-30udev: ata_id: log faling ioctls as "debug"Kay Sievers
2013-04-14udev/ata_id: zero out variable properlyZbigniew Jędrzejewski-Szmek
b8a2b0f76 'use initalization instead of explicit zeroing' introduced a bug where only the first sizeof(uint_t*) bytes would be zeroed out, instead of the whole array.
2013-04-10udev/ata_id: use initalization instead of explicit zeroingZbigniew Jędrzejewski-Szmek
2012-11-12use the same email address everywhereKay Sievers
2012-07-05udev: ata_id - fixup all 8 not only 6 bytes of the fw_rev stringKay Sievers
The last two digits are in the wrong order: $ hdparm -I /dev/sda | grep Revision 4PC10362 $ /lib/udev/ata_id -x /dev/sda | grep REVISION 4PC10326
2012-04-13udev: fix a few issues detected by the llvm static analyzerKay Sievers
2012-04-08udev: switch to systemd logging functionsKay Sievers
2012-04-04udev: ata_id - remove assert() until we switch over to systemd loggingKay Sievers
2012-04-04move imported udev into placeKay Sievers