vh265: less kernel log spam
authorRay <1458889+Raybuntu@users.noreply.github.com>
Wed, 20 Mar 2019 09:47:26 +0000 (10:47 +0100)
committerNick Xie <nick@khadas.com>
Fri, 12 Jul 2019 05:37:03 +0000 (13:37 +0800)
drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c

index 9482f28..acf7f69 100644 (file)
@@ -1908,13 +1908,11 @@ static int hevc_print(struct hevc_state_s *hevc,
 #define HEVC_PRINT_BUF         256
        unsigned char buf[HEVC_PRINT_BUF];
        int len = 0;
-#ifdef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
        if (hevc == NULL ||
                (flag == 0) ||
                ((debug_mask &
                (1 << hevc->index))
                && (debug & flag))) {
-#endif
                va_list args;
 
                va_start(args, fmt);
@@ -1923,9 +1921,7 @@ static int hevc_print(struct hevc_state_s *hevc,
                vsnprintf(buf + len, HEVC_PRINT_BUF - len, fmt, args);
                pr_debug("%s", buf);
                va_end(args);
-#ifdef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
        }
-#endif
        return 0;
 }