projects
/
platform
/
upstream
/
libatasmart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f1a396
)
show full device string when dumping status
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 May 2009 00:06:30 +0000
(
02:06
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 7 May 2009 00:06:30 +0000
(
02:06
+0200)
atasmart.c
patch
|
blob
|
history
diff --git
a/atasmart.c
b/atasmart.c
index
1edc0f8
..
0d71926
100644
(file)
--- a/
atasmart.c
+++ b/
atasmart.c
@@
-2115,8
+2115,10
@@
int sk_disk_dump(SkDisk *d) {
assert(d);
- printf("Device: %s\n"
+ printf("Device: %s
%s%s
\n"
"Type: %s\n",
+ d->name ? disk_type_to_prefix_string(d->type) : "",
+ d->name ? ":" : "",
d->name ? d->name : "n/a",
disk_type_to_human_string(d->type));