From: Rene Rebe <rene.rebe@gmx.net>
To: linux-kernel@vger.kernel.org
Subject: mangled isapnp IDs in /proc/bus/isapnp/devices
Date: Tue, 22 Apr 2003 11:46:14 +0200 (CEST) [thread overview]
Message-ID: <20030422.114614.846960661.rene.rebe@gmx.net> (raw)
Hi all,
is there a reason why the isapnp device id are mangled this way:
drivers/pnp/isapnp_proc.c
static void isapnp_devid(char *str, unsigned short vendor, unsigned short device)
{
sprintf(str, "%c%c%c%x%x%x%x",
'A' + ((vendor >> 2) & 0x3f) - 1,
'A' + (((vendor & 3) << 3) | ((vendor >> 13) & 7)) - 1,
'A' + ((vendor >> 8) & 0x1f) - 1,
(device >> 4) & 0x0f,
device & 0x0f,
(device >> 12) & 0x0f,
(device >> 8) & 0x0f);
}
This results in output like:
CSCd937 CSC0000
Which I have to un-mangle ... :-( What is the reason for not outputting
simple hex?
Sincerely,
- René
--
René Rebe - Europe/Germany/Berlin
e-mail: rene@rocklinux.org, rene.rebe@gmx.net
web: http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/rene/
Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.
next reply other threads:[~2003-04-22 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-22 9:46 Rene Rebe [this message]
2003-04-22 14:06 ` Alan Cox
2003-04-22 15:21 ` Rene Rebe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030422.114614.846960661.rene.rebe@gmx.net \
--to=rene.rebe@gmx.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®