diff options
| author | Kefeng Wang <[email protected]> | 2019-10-18 03:18:47 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2019-10-18 13:02:57 +0000 |
| commit | c405c37bd9022ece118099fa39040bee8c5adbff (patch) | |
| tree | e48a734d59efb923c4ff90ecfdfa4ded80b86069 /tools/lib/api/fs/fs.c | |
| parent | ASoC: samsung: Use pr_warn instead of pr_warning (diff) | |
| download | kernel-c405c37bd9022ece118099fa39040bee8c5adbff.tar.gz kernel-c405c37bd9022ece118099fa39040bee8c5adbff.zip | |
tools lib api: Renaming pr_warning to pr_warn
For kernel logging macro, pr_warning is completely removed and
replaced by pr_warn, using pr_warn in tools lib api for symmetry
to kernel logging macro, then we could drop pr_warning in the
whole linux code.
Changing __pr_warning to __pr_warn to be consistent.
Link: http://lkml.kernel.org/r/[email protected]
To: [email protected]
Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Kefeng Wang <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/fs.c')
| -rw-r--r-- | tools/lib/api/fs/fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/api/fs/fs.c b/tools/lib/api/fs/fs.c index 7aba8243a0e7..11b3885e833e 100644 --- a/tools/lib/api/fs/fs.c +++ b/tools/lib/api/fs/fs.c @@ -381,8 +381,8 @@ int filename__read_str(const char *filename, char **buf, size_t *sizep) n = read(fd, bf + size, alloc_size - size); if (n < 0) { if (size) { - pr_warning("read failed %d: %s\n", errno, - strerror_r(errno, sbuf, sizeof(sbuf))); + pr_warn("read failed %d: %s\n", errno, + strerror_r(errno, sbuf, sizeof(sbuf))); err = 0; } else err = -errno; |
