public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix "Trying to free nonexistent resource" format string
@ 2006-06-21 17:57 Andy Isaacson
  2006-06-24  2:44 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Isaacson @ 2006-06-21 17:57 UTC (permalink / raw)
  To: akpm; +Cc: Greg KH, linux-kernel

In 2.6.17-mm1, the patch
gregkh-pci-64bit-resource-fix-up-printks-for-resources-in-arch-and-core-code.patch
has some formatting bugs.
 * converts %08x into %16llx, which results in space-padding rather than
   zero-padding.
 * some casts are insufficiently touchy-feely with their castees.

This patch fixes them.

Signed-off-by: Andy Isaacson <adi@hexapodia.org>

Index: q-2.6.17-mm1/kernel/resource.c
===================================================================
--- q-2.6.17-mm1.orig/kernel/resource.c	2006-06-21 10:55:05.000000000 -0700
+++ q-2.6.17-mm1/kernel/resource.c	2006-06-21 10:55:49.000000000 -0700
@@ -558,8 +558,8 @@
 	write_unlock(&resource_lock);
 
 	printk(KERN_WARNING "Trying to free nonexistent resource "
-		"<%16llx-%16llx>\n", (unsigned long long)start,
-		(unsigned long long) end);
+		"<%016llx-%016llx>\n", (unsigned long long)start,
+		(unsigned long long)end);
 }
 
 EXPORT_SYMBOL(__release_region);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-24  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-21 17:57 [PATCH] fix "Trying to free nonexistent resource" format string Andy Isaacson
2006-06-24  2:44 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox