diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-28 02:58:12 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-28 02:58:12 +0200 |
commit | fed0ad76941e8021ba1a7d88f7a8ca9d89c99016 (patch) | |
tree | a179e9579e8fd003899accd058be7e607931d9f9 /extras/ata_id/ata_id.c | |
parent | a8916c3400e2968aa17b296deff8736db86c338a (diff) |
ata_id: sync ID_SERIAL(_SHORT) with other *_id tools
ID_SERIAL is the full serial number used for the links, ID_SERIAL_SHORT
is the device serial number.
Diffstat (limited to 'extras/ata_id/ata_id.c')
-rw-r--r-- | extras/ata_id/ata_id.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index d976467817..9644a45b19 100644 --- a/extras/ata_id/ata_id.c +++ b/extras/ata_id/ata_id.c @@ -149,11 +149,12 @@ int main(int argc, char *argv[]) } else { printf("ID_TYPE=disk\n"); } + printf("ID_BUS=ata\n"); printf("ID_MODEL=%s\n", model); printf("ID_MODEL_ENC=%s\n", model_enc); - printf("ID_SERIAL=%s\n", serial); printf("ID_REVISION=%s\n", revision); - printf("ID_BUS=ata\n"); + printf("ID_SERIAL=%s_%s\n", model, serial); + printf("ID_SERIAL_SHORT=%s\n", serial); } else { if (serial[0] != '\0') printf("%s_%s\n", model, serial); |