Merge tag 'v6.9-rc-smb3-server-fixes' of git://git.samba.org/ksmbd
[linux-2.6-microblaze.git] / tools / perf / util / lzma.c
index 51424cd..af9a976 100644 (file)
@@ -45,15 +45,13 @@ int lzma_decompress_to_file(const char *input, int output_fd)
 
        infile = fopen(input, "rb");
        if (!infile) {
-               pr_err("lzma: fopen failed on %s: '%s'\n",
-                      input, strerror(errno));
+               pr_debug("lzma: fopen failed on %s: '%s'\n", input, strerror(errno));
                return -1;
        }
 
        ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED);
        if (ret != LZMA_OK) {
-               pr_err("lzma: lzma_stream_decoder failed %s (%d)\n",
-                       lzma_strerror(ret), ret);
+               pr_debug("lzma: lzma_stream_decoder failed %s (%d)\n", lzma_strerror(ret), ret);
                goto err_fclose;
        }
 
@@ -68,7 +66,7 @@ int lzma_decompress_to_file(const char *input, int output_fd)
                        strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile);
 
                        if (ferror(infile)) {
-                               pr_err("lzma: read error: %s\n", strerror(errno));
+                               pr_debug("lzma: read error: %s\n", strerror(errno));
                                goto err_lzma_end;
                        }
 
@@ -82,7 +80,7 @@ int lzma_decompress_to_file(const char *input, int output_fd)
                        ssize_t write_size = sizeof(buf_out) - strm.avail_out;
 
                        if (writen(output_fd, buf_out, write_size) != write_size) {
-                               pr_err("lzma: write error: %s\n", strerror(errno));
+                               pr_debug("lzma: write error: %s\n", strerror(errno));
                                goto err_lzma_end;
                        }
 
@@ -94,7 +92,7 @@ int lzma_decompress_to_file(const char *input, int output_fd)
                        if (ret == LZMA_STREAM_END)
                                break;
 
-                       pr_err("lzma: failed %s\n", lzma_strerror(ret));
+                       pr_debug("lzma: failed %s\n", lzma_strerror(ret));
                        goto err_lzma_end;
                }
        }