summaryrefslogtreecommitdiff
path: root/btt/devmap.c
diff options
context:
space:
mode:
authorAlan David Brunelle <Alan.Brunelle@hp.com>2006-09-21 09:15:41 +0200
committerJens Axboe <axboe@kernel.dk>2006-09-21 09:15:41 +0200
commit6119854cc2acfdd1a545fa028f86e3e4b6c040dc (patch)
treec2ce2f41c7364e16ce35bab43f92b14c82af09f0 /btt/devmap.c
parent165e0a18ea7449be53a28b4b2907cc2071486e8d (diff)
downloadblktrace-6119854cc2acfdd1a545fa028f86e3e4b6c040dc.tar.gz
blktrace-6119854cc2acfdd1a545fa028f86e3e4b6c040dc.tar.bz2
[PATCH] Added '-' and '_' in dev IDs in devmap file; output dev name, not numbers
Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'btt/devmap.c')
-rw-r--r--btt/devmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btt/devmap.c b/btt/devmap.c
index 5de57e8..2227617 100644
--- a/btt/devmap.c
+++ b/btt/devmap.c
@@ -55,7 +55,7 @@ int dev_map_read(char *fname)
return 1;
}
- while (fscanf(fp, "%255[a-zA-Z0-9 :.,/]\n", line) == 1) {
+ while (fscanf(fp, "%255[a-zA-Z0-9 :.,/_-]\n", line) == 1) {
if (strstr(line, "Device") != NULL) continue;
if (sscanf(line, "%s %s %u %u %u %u %s %s %u %u %s",
&dm.device[0], &dm.model[0], &dm.host, &dm.bus,