Commit 2fbdf6e8 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Show the untampered arguments in debug printk

agp_v3_parse_one() does some changes to these args by the time we
get to the printk. It'll be useful to know what they started at.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent f9278971
...@@ -414,6 +414,8 @@ static void agp_v2_parse_one(u32 *mode, u32 *cmd, u32 *tmp) ...@@ -414,6 +414,8 @@ static void agp_v2_parse_one(u32 *mode, u32 *cmd, u32 *tmp)
*/ */
static void agp_v3_parse_one(u32 *mode, u32 *cmd, u32 *tmp) static void agp_v3_parse_one(u32 *mode, u32 *cmd, u32 *tmp)
{ {
u32 origcmd=*cmd, origtmp=*tmp;
/* ARQSZ - Set the value to the maximum one. /* ARQSZ - Set the value to the maximum one.
* Don't allow the mode register to override values. */ * Don't allow the mode register to override values. */
*cmd = ((*cmd & ~AGPSTAT_ARQSZ) | *cmd = ((*cmd & ~AGPSTAT_ARQSZ) |
...@@ -467,7 +469,9 @@ static void agp_v3_parse_one(u32 *mode, u32 *cmd, u32 *tmp) ...@@ -467,7 +469,9 @@ static void agp_v3_parse_one(u32 *mode, u32 *cmd, u32 *tmp)
if ((*cmd & AGPSTAT3_4X) && (*tmp & AGPSTAT3_4X)) if ((*cmd & AGPSTAT3_4X) && (*tmp & AGPSTAT3_4X))
*cmd |= ~AGPSTAT3_4X; *cmd |= ~AGPSTAT3_4X;
else { else {
printk (KERN_INFO PFX "Badness. Don't know which AGP mode to set. [cmd:%x tmp:%x]\n", cmd, tmp); printk (KERN_INFO PFX "Badness. Don't know which AGP mode to set. "
"[cmd:%x tmp:%x fell back to:- cmd:%x tmp:%x]\n",
origcmd, origtmp, *cmd, *tmp);
return; return;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment