lkml.org 
[lkml]   [2011]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/25] dynamic_debug: pr_err() call should not depend upon verbosity
    Date
    From: Jim Cromie <jim.cromie@gmail.com>

    issue keyword/parsing errors even w/o verbose set;
    uncover otherwize mysterious non-functionality.

    Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
    ---
    lib/dynamic_debug.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
    index 101e2e5..4c6d0b7 100644
    --- a/lib/dynamic_debug.c
    +++ b/lib/dynamic_debug.c
    @@ -322,8 +322,7 @@ static int ddebug_parse_query(char *words[], int nwords,
    query->last_lineno = query->first_lineno;
    }
    } else {
    - if (verbose)
    - pr_err("unknown keyword \"%s\"\n", words[i]);
    + pr_err("unknown keyword \"%s\"\n", words[i]);
    return -EINVAL;
    }
    }
    --
    1.7.7.3


    \
     
     \ /
      Last update: 2011-12-06 20:15    [W:0.019 / U:1.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site