From: Cesar Eduardo Barros <cesarb@cesarb.net>
To: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org,
linux-pm@lists.linux-foundation.org, Avi Kivity <avi@redhat.com>,
Nick Piggin <npiggin@suse.de>,
Minchan Kim <minchan.kim@gmail.com>,
Jens Axboe <jens.axboe@oracle.com>,
Hugh Dickins <hughd@google.com>,
Cesar Eduardo Barros <cesarb@cesarb.net>
Subject: [PATCH v2 1/3] mm/swapfile.c: better messages for swap_info_get
Date: Sat, 5 Jun 2010 20:14:34 -0300 [thread overview]
Message-ID: <1275779676-19120-1-git-send-email-cesarb@cesarb.net> (raw)
In-Reply-To: <4C0ADA44.4020406@cesarb.net>
swap_info_get() is used for more than swap_free().
Use "swap_info_get:" instead of "swap_free:" in the error messages.
Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
---
mm/swapfile.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 03aa2d5..68765c9 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -525,16 +525,16 @@ static struct swap_info_struct *swap_info_get(swp_entry_t entry)
return p;
bad_free:
- printk(KERN_ERR "swap_free: %s%08lx\n", Unused_offset, entry.val);
+ printk(KERN_ERR "swap_info_get: %s%08lx\n", Unused_offset, entry.val);
goto out;
bad_offset:
- printk(KERN_ERR "swap_free: %s%08lx\n", Bad_offset, entry.val);
+ printk(KERN_ERR "swap_info_get: %s%08lx\n", Bad_offset, entry.val);
goto out;
bad_device:
- printk(KERN_ERR "swap_free: %s%08lx\n", Unused_file, entry.val);
+ printk(KERN_ERR "swap_info_get: %s%08lx\n", Unused_file, entry.val);
goto out;
bad_nofile:
- printk(KERN_ERR "swap_free: %s%08lx\n", Bad_file, entry.val);
+ printk(KERN_ERR "swap_info_get: %s%08lx\n", Bad_file, entry.val);
out:
return NULL;
}
--
1.6.6.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-06-05 23:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 23:14 [PATCH v2 0/3] mm: Swap checksum Cesar Eduardo Barros
2010-06-05 23:14 ` Cesar Eduardo Barros [this message]
2010-06-05 23:14 ` [PATCH v2 2/3] kernel/power/block_io.c: do not use end_swap_bio_read Cesar Eduardo Barros
2010-06-05 23:14 ` [PATCH v2 3/3] mm: Swap checksum Cesar Eduardo Barros
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=1275779676-19120-1-git-send-email-cesarb@cesarb.net \
--to=cesarb@cesarb.net \
--cc=avi@redhat.com \
--cc=hughd@google.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=minchan.kim@gmail.com \
--cc=npiggin@suse.de \
/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