From a49513587bed11058b8cc10314652c6dfa229f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Thu, 16 Sep 2004 09:35:01 +0000 Subject: [PATCH] Ignore leading '_' in model name returned by devices. This make "_NEC" devices appear as "NEC" which is more corrent. The reason is tha NEC originally screwed up on the byteorder in the model string, so now that they have realized that they prefixed the '_' so that not every ATA driver on the planet would call them "EN C" :) --- sys/dev/ata/ata-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index be58b0e3adca..cf7acb92a352 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -759,7 +759,7 @@ btrim(int8_t *buf, int len) int8_t *ptr; for (ptr = buf; ptr < buf+len; ++ptr) - if (!*ptr) + if (!*ptr || *ptr == '_') *ptr = ' '; for (ptr = buf + len - 1; ptr >= buf && *ptr == ' '; --ptr) *ptr = 0;