All of lore.kernel.org
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: lustre-devel@lists.lustre.org
Subject: [lustre-devel] [PATCH] lustre: initialize libcfs_debug_file_path
Date: Mon, 29 Oct 2018 15:34:15 +1100	[thread overview]
Message-ID: <87k1m12wxk.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <alpine.LFD.2.21.1810290331490.6811@casper.infradead.org>

On Mon, Oct 29 2018, James Simmons wrote:

>> This variable is assumed by the code to either
>> be "NONE" or a file name - it shouldn't be NULL.
>> 
>> So initialise to the compiled default.
>> 
>> Signed-off-by: NeilBrown <neilb@suse.com>
>> ---
>> 
>> I'm going though failed tests, looking for things to fix.
>> This fixes 77c.
>
> Reviewed-by: James Simmons <jsimmons@infradead.org>

Thanks for these two reviews.

NeilBrown

>  
>>  drivers/staging/lustre/lnet/libcfs/debug.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/drivers/staging/lustre/lnet/libcfs/debug.c b/drivers/staging/lustre/lnet/libcfs/debug.c
>> index 90d756c83520..f9544367389d 100644
>> --- a/drivers/staging/lustre/lnet/libcfs/debug.c
>> +++ b/drivers/staging/lustre/lnet/libcfs/debug.c
>> @@ -224,7 +224,7 @@ char libcfs_debug_file_path_arr[PATH_MAX] = LIBCFS_DEBUG_FILE_PATH_DEFAULT;
>>  EXPORT_SYMBOL(libcfs_debug_file_path_arr);
>>  
>>  /* We need to pass a pointer here, but elsewhere this must be a const */
>> -static char *libcfs_debug_file_path;
>> +static char *libcfs_debug_file_path = LIBCFS_DEBUG_FILE_PATH_DEFAULT;
>>  module_param(libcfs_debug_file_path, charp, 0644);
>>  MODULE_PARM_DESC(libcfs_debug_file_path,
>>  		 "Path for dumping debug logs, set 'NONE' to prevent log dumping");
>> -- 
>> 2.14.0.rc0.dirty
>> 
>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20181029/65b8ff0c/attachment.sig>

      reply	other threads:[~2018-10-29  4:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26  1:39 [lustre-devel] [PATCH] lustre: initialize libcfs_debug_file_path NeilBrown
2018-10-26  3:33 ` [lustre-devel] [PATCH] lustre: accept suffix when parsing max_pages_per_rpc NeilBrown
2018-10-29  3:37   ` James Simmons
2018-10-29  3:32 ` [lustre-devel] [PATCH] lustre: initialize libcfs_debug_file_path James Simmons
2018-10-29  4:34   ` NeilBrown [this message]

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=87k1m12wxk.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=lustre-devel@lists.lustre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.