public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Philip Pokorny <ppokorny@penguincomputing.com>
To: linux-kernel@vger.kernel.org, mingo@redhat.com, torvalds@transmeta.com
Subject: [PATCH] timer vector printed inconsistently
Date: Wed, 06 Jun 2001 14:41:55 -0700	[thread overview]
Message-ID: <3B1EA3A3.7A2C4144@penguincomputing.com> (raw)

When trying to debug a recent problem with some interrupt routing,
I found the output to be confusing...  The TIMER vector is
printed with %d, but when the APIC tables are printed, the vector
is printed using %02X.  This was particularly confusing in this case
because the TIMER vector was 49d (0x31) and vector 0x49 was
assigned to a different APIC pin.

The following patch causes the TIMER vector to be printed the same
way as the vectors in the APIC table (See line 786 of my io_apic.c)

I'm not a subscriber of the kernel mailing list, so please CC my on
any replies.

--- arch/i386/kernel/io_apic.c.orig	Tue Jun  5 17:30:12 2001
+++ arch/i386/kernel/io_apic.c	Tue Jun  5 17:34:38 2001
@@ -1489,7 +1489,7 @@
 	pin1 = find_isa_irq_pin(0, mp_INT);
 	pin2 = find_isa_irq_pin(0, mp_ExtINT);
 
-	printk(KERN_INFO "..TIMER: vector=%d pin1=%d pin2=%d\n", vector, pin1, pin2);
+	printk(KERN_INFO "..TIMER: vector=%02X pin1=%d pin2=%d\n", vector, pin1, pin2);
 
 	if (pin1 != -1) {
 		/*

-- 
Philip Pokorny, Senior Engineer
http://www.penguincomputing.com

Penguin Computing - The World's Most Reliable Linux Systems

                 reply	other threads:[~2001-06-06 21:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3B1EA3A3.7A2C4144@penguincomputing.com \
    --to=ppokorny@penguincomputing.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=torvalds@transmeta.com \
    /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