summaryrefslogtreecommitdiff
path: root/src/udev/ata_id
Commit message (Collapse)AuthorAgeFilesLines
* Add SPDX license identifiers to source files under the GPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
|
* tree-wide: use IN_SET macro (#6977)Yu Watanabe2017-10-041-3/+2
|
* build-sys: drop automake supportZbigniew Jędrzejewski-Szmek2017-07-181-1/+0
| | | | | v2: - also mention m4
* Rip out setting of the log level from udev_new and put it in a new functionZbigniew Jędrzejewski-Szmek2017-05-071-0/+2
| | | | | | | | This function is internal to systemd code, so external users of libudev will not see those log messages. I think this is better. If we want to allow that, the function could be put in libudev and exported. v2: check that the string is more than one char before stripping quotes
* tree-wide: group include of libudev.h with sd-*Thomas Hindoe Paaboel Andersen2015-11-171-1/+2
|
* tree-wide: sort includesThomas Hindoe Paaboel Andersen2015-11-161-2/+1
| | | | Sort the includes accoding to the new coding style.
* util-lib: split out fd-related operations into fd-util.[ch]Lennart Poettering2015-10-251-0/+1
| | | | | There are more than enough to deserve their own .c file, hence move them over.
* util-lib: split our string related calls from util.[ch] into its own file ↵Lennart Poettering2015-10-241-11/+12
| | | | | | | | | | | | | | string-util.[ch] There are more than enough calls doing string manipulations to deserve its own files, hence do something about it. This patch also sorts the #include blocks of all files that needed to be updated, according to the sorting suggestions from CODING_STYLE. Since pretty much every file needs our string manipulation functions this effectively means that most files have sorted #include blocks now. Also touches a few unrelated include files.
* udev: ata_id - ATA_ID_SATA_CAPABILITY == 76Kay Sievers2015-09-221-5/+5
|
* Fixup WWN bytes for big-endian systemsTom Lyon2015-09-211-0/+4
|
* tree-wide: replace while(1) by for(;;) everywhereLennart Poettering2015-09-091-1/+1
| | | | Another Coccinelle script.
* ata_id: remove unused union memberThomas Hindoe Paaboel Andersen2015-07-251-1/+0
| | | | The last use of octa was removed in 01f61d331bb5038f0c877ac03c54333328b6ea28
* ata_id: unreverse WWN identifierZbigniew Jędrzejewski-Szmek2015-07-221-2/+12
| | | | | | | An endianness conversion was lost in 6024a6e302bad6bcf073fa84a41a6123305dc845. Restore it. Now ata_id and scsi_id output match. https://bugzilla.redhat.com/show_bug.cgi?id=1227503
* ata_id: unbotch format specifierJan Engelhardt2015-06-241-2/+2
| | | | | | | | | Commit v218-247-g11c6f69 broke the output of the utility. "%1$" PRIu64 "x" expands to "%1$lux", essentially "%lux", which shows the problem. u and x cannot be combined, u wins as the type character, and x gets emitted verbatim to stdout. References: https://bugzilla.redhat.com/show_bug.cgi?id=1227503
* ata_id: drop spurious spaceLennart Poettering2015-05-181-1/+1
|
* ata_id: remove unused header filesRobert Milasan2015-02-111-4/+0
| | | | Signed-off-by: Robert Milasan <rmilasan@suse.com>
* udev: improve help/usage for some more programsRobert Milasan2015-01-011-2/+2
|
* ata_id: remove temp variable to kill warningZbigniew Jędrzejewski-Szmek2014-12-251-8/+7
| | | | | | src/udev/ata_id/ata_id.c:503:24: warning: assignment from incompatible pointer type identify_words = &identify.wyde; ^
* ata_id: modernizeZbigniew Jędrzejewski-Szmek2014-12-251-40/+23
|
* udev: fix another strict aliasing issueShawn Paul Landden2014-12-251-32/+30
|
* treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt2014-11-281-1/+1
| | | | | | | | | | | 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.
* udev: switch to systemd logging functionsKay Sievers2014-11-131-10/+0
|
* build-sys: add missing makefile symlinksLennart Poettering2014-08-111-0/+1
|
* udev: never bypass our own logging framework and call vsyslog() directly ↵Lennart Poettering2014-08-111-2/+4
| | | | from udev tools
* everywhere: always use O_CLOEXEC where it makes senseLennart Poettering2014-02-131-1/+1
|
* log: log_error() and friends add a newline after each line anyway, so avoid ↵Lennart Poettering2013-12-241-3/+3
| | | | including it in the log strings
* Add more _printf_'s for format-nonliteralsThomas Hindoe Paaboel Andersen2013-12-141-0/+1
| | | | | | | | | | | 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.
* udev: ata_id: log faling ioctls as "debug"Kay Sievers2013-10-301-1/+1
|
* udev/ata_id: zero out variable properlyZbigniew Jędrzejewski-Szmek2013-04-141-4/+3
| | | | | | 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.
* udev/ata_id: use initalization instead of explicit zeroingZbigniew Jędrzejewski-Szmek2013-04-101-169/+146
|
* use the same email address everywhereKay Sievers2012-11-121-1/+1
|
* udev: ata_id - fixup all 8 not only 6 bytes of the fw_rev stringKay Sievers2012-07-051-1/+1
| | | | | | | | | 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
* udev: fix a few issues detected by the llvm static analyzerKay Sievers2012-04-131-1/+0
|
* udev: switch to systemd logging functionsKay Sievers2012-04-081-5/+6
|
* udev: ata_id - remove assert() until we switch over to systemd loggingKay Sievers2012-04-041-25/+18
|
* move imported udev into placeKay Sievers2012-04-041-0/+721