Skip to contentSkip to conversation

agp: Fix multi-line warning message whitespace

PATCH In review Tormod Volden 2 participants 3 messages Nov 6, 2011 – Jan 5, 2012 Agpgart driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 agp: Fix multi-line warning message whitespace

From: Tormod Volden <[email protected]>

---
 drivers/char/agp/generic.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/char/agp/generic.c +4 -4
index c5d04e5..2dc2d5b 100644
@@ -514,12 +514,12 @@ static void agp_v2_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
 	switch (*bridge_agpstat & 7) {
 	case 4:
 		*bridge_agpstat |= (AGPSTAT2_2X | AGPSTAT2_1X);
-		printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x4 rate"
+		printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x4 rate. "
 			"Fixing up support for x2 & x1\n");
 		break;
 	case 2:
 		*bridge_agpstat |= AGPSTAT2_1X;
-		printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x2 rate"
+		printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x2 rate. "
 			"Fixing up support for x1\n");
 		break;
 	default:
@@ -711,7 +711,7 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
 			*bridge_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
 			*vga_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
 		} else {
-			printk(KERN_INFO PFX "Fell back to AGPx4 mode because");
+			printk(KERN_INFO PFX "Fell back to AGPx4 mode because ");
 			if (!(*bridge_agpstat & AGPSTAT3_8X)) {
 				printk(KERN_INFO PFX "bridge couldn't do x8. bridge_agpstat:%x (orig=%x)\n",
 					*bridge_agpstat, origbridge);
@@ -974,7 +974,7 @@ int agp_generic_create_gatt_table(struct agp_bridge_data *bridge)
 	bridge->driver->cache_flush();
 #ifdef CONFIG_X86
 	if (set_memory_uc((unsigned long)table, 1 << page_order))
-		printk(KERN_WARNING "Could not set GATT table memory to UC!");
+		printk(KERN_WARNING "Could not set GATT table memory to UC!\n");
 
 	bridge->gatt_table = (void *)table;
 #else
Signature · 1 line
1.7.5.4
#1 lore raw

FWIW, Reviewed-by: Corbin Simpson <[email protected]>

Sending from a mobile, pardon my terseness. ~ C.

Quoted 55 lines · Tormod Volden

From: Tormod Volden <[email protected]>

---
 drivers/char/agp/generic.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/char/agp/generic.c +0 -0
index c5d04e5..2dc2d5b 100644
@@ -514,12 +514,12 @@ static void agp_v2_parse_one(u32 *requested_mode,

u32 *bridge_agpstat, u32 *vga_

       switch (*bridge_agpstat & 7) {
       case 4:
               *bridge_agpstat |= (AGPSTAT2_2X | AGPSTAT2_1X);

- printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only
support x4 rate"
+ printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only
support x4 rate. "

                       "Fixing up support for x2 & x1\n");
               break;
       case 2:
               *bridge_agpstat |= AGPSTAT2_1X;

- printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only
support x2 rate"
+ printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only
support x2 rate. "

                       "Fixing up support for x1\n");
               break;
       default:
drivers/char/agp/generic.c +1 -1
@@ -711,7 +711,7 @@ static void agp_v3_parse_one(u32 *requested_mode, u32
 *bridge_agpstat, u32 *vga_
                       *bridge_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
                       *vga_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
               } else {
-                       printk(KERN_INFO PFX "Fell back to AGPx4 mode
 because");
+                       printk(KERN_INFO PFX "Fell back to AGPx4 mode
 because ");

if (!(*bridge_agpstat & AGPSTAT3_8X)) {
printk(KERN_INFO PFX "bridge couldn't do
x8. bridge_agpstat:%x (orig=%x)\n",

                                       *bridge_agpstat, origbridge);
drivers/char/agp/generic.c +1 -1
@@ -974,7 +974,7 @@ int agp_generic_create_gatt_table(struct
 agp_bridge_data *bridge)
       bridge->driver->cache_flush();
 #ifdef CONFIG_X86
       if (set_memory_uc((unsigned long)table, 1 << page_order))
-               printk(KERN_WARNING "Could not set GATT table memory to
 UC!");
+               printk(KERN_WARNING "Could not set GATT table memory to
 UC!\n");
       bridge->gatt_table = (void *)table;
Quoted 9 lines

#else
--
1.7.5.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Hi Dave,

Can you pick up this, or do I have to reroll the patch with the R-B?

Cheers,
Tormod

Quoted 65 lines · Corbin Simpson

FWIW, Reviewed-by: Corbin Simpson <[email protected]>

Sending from a mobile, pardon my terseness. ~ C.

Quoted 60 lines · Tormod Volden

From: Tormod Volden <[email protected]>

---
 drivers/char/agp/generic.c |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/char/agp/generic.c +0 -0
index c5d04e5..2dc2d5b 100644
@@ -514,12 +514,12 @@ static void agp_v2_parse_one(u32 *requested_mode,

u32 *bridge_agpstat, u32 *vga_
       switch (*bridge_agpstat & 7) {
       case 4:
               *bridge_agpstat |= (AGPSTAT2_2X | AGPSTAT2_1X);
-               printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x4 rate"
+               printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x4 rate. "
                       "Fixing up support for x2 & x1\n"); break;
       case 2:
               *bridge_agpstat |= AGPSTAT2_1X;
-               printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x2 rate"
+               printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x2 rate. "
                       "Fixing up support for x1\n");
               break;
       default:

drivers/char/agp/generic.c +1 -1
@@ -711,7 +711,7 @@ static void agp_v3_parse_one(u32 *requested_mode, u32
 *bridge_agpstat, u32 *vga_
                        *bridge_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
                        *vga_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
                } else {
-                       printk(KERN_INFO PFX "Fell back to AGPx4 mode
 because");
+                       printk(KERN_INFO PFX "Fell back to AGPx4 mode
 because ");

                       if (!(*bridge_agpstat & AGPSTAT3_8X)) { printk(KERN_INFO PFX "bridge couldn't do x8. bridge_agpstat:%x (orig=%x)\n",
                                       *bridge_agpstat, origbridge);

drivers/char/agp/generic.c +1 -1
@@ -974,7 +974,7 @@ int agp_generic_create_gatt_table(struct
 agp_bridge_data *bridge)
        bridge->driver->cache_flush();
  #ifdef CONFIG_X86
        if (set_memory_uc((unsigned long)table, 1 << page_order))
-               printk(KERN_WARNING "Could not set GATT table memory to
 UC!");
+               printk(KERN_WARNING "Could not set GATT table memory to
 UC!\n");

       bridge->gatt_table = (void *)table;
 #else
--
1.7.5.4