lkml.org 
[lkml]   [2020]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 08/21] dyndbg: fix pr_err with empty string
    Date
    this pr_err attempts to print the string after the OP, but the string
    has been parsed and chopped up, so looks empty.

    Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
    ---
    lib/dynamic_debug.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
    index 0cb5679f6c54..1d25a846553b 100644
    --- a/lib/dynamic_debug.c
    +++ b/lib/dynamic_debug.c
    @@ -420,7 +420,7 @@ static int ddebug_parse_flags(const char *str, unsigned int *flagsp,
    }
    }
    if (i < 0) {
    - pr_err("unknown flag '%c' in \"%s\"\n", *str, str);
    + pr_err("unknown flag '%c'\n", *str);
    return -EINVAL;
    }
    }
    --
    2.26.2
    \
     
     \ /
      Last update: 2020-06-17 18:27    [W:6.062 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site