linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Isaacson <adi@hexapodia.org>
To: akpm@osdl.org
Cc: Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] fix "Trying to free nonexistent resource" format string
Date: Wed, 21 Jun 2006 10:57:00 -0700	[thread overview]
Message-ID: <20060621175700.GA4620@hexapodia.org> (raw)

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);

             reply	other threads:[~2006-06-21 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 17:57 Andy Isaacson [this message]
2006-06-24  2:44 ` [PATCH] fix "Trying to free nonexistent resource" format string Greg KH

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=20060621175700.GA4620@hexapodia.org \
    --to=adi@hexapodia.org \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).