lkml.org 
[lkml]   [2006]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fix "Trying to free nonexistent resource" format string
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-06-21 19:59    [W:0.035 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site