| To: | Chris Wedgwood <cw@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] lose xfs_hex_dump in favor of print_hex_dump |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Mon, 24 Sep 2007 20:31:45 -0500 |
| Cc: | xfs-oss <xfs@xxxxxxxxxxx> |
| In-reply-to: | <20070925003232.GA26663@xxxxxxxxxxxxxxxxxx> |
| References: | <46F85240.1060206@xxxxxxxxxxx> <20070925003232.GA26663@xxxxxxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 2.0.0.6 (Macintosh/20070728) |
Chris Wedgwood wrote:
> On Mon, Sep 24, 2007 at 07:11:44PM -0500, Eric Sandeen wrote:
>
>> +extern void xfs_hex_dump(void *p, int length);
>> +
>
>> +void
>> +xfs_hex_dump(void *p, int length)
>> +{
>> + print_hex_dump(KERN_ALERT, "", DUMP_PREFIX_OFFSET, 16, 1, p, length, 1);
>> +}
>
> Is this symbol exported/needed? If not then why not make it a #define
> or an inline in the header where you have the prototype?
Yeah, I suppose that might be better.... I just followed the lead of
xfs_cmn_err etc.
The only reason I left a wrapper was for cattelan's BSD exploits
(er, adventures) ;-) I could imagine it getting called from other places,
but for now it only has one caller, xfs_corruption_error (so really, even
the length argument is never anything other than 16...)
-Eric
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] lose xfs_hex_dump in favor of print_hex_dump, Chris Wedgwood |
|---|---|
| Next by Date: | Re: something very strange w/ filestreams..., Eric Sandeen |
| Previous by Thread: | Re: [PATCH] lose xfs_hex_dump in favor of print_hex_dump, Chris Wedgwood |
| Next by Thread: | Re: [PATCH] lose xfs_hex_dump in favor of print_hex_dump, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |