LCOV - code coverage report
Current view: top level - drivers/common/zsda - zsda_logs.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 1 5 20.0 %
Date: 2025-03-01 20:23:48 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 4 25.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2024 ZTE Corporation
       3                 :            :  */
       4                 :            : 
       5                 :            : #include <rte_hexdump.h>
       6                 :            : 
       7                 :            : #include "zsda_logs.h"
       8                 :            : 
       9                 :            : int
      10                 :          0 : zsda_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
      11                 :            :                 const void *buf, unsigned int len)
      12                 :            : {
      13         [ #  # ]:          0 :         if (rte_log_can_log(logtype, level))
      14                 :          0 :                 rte_hexdump(rte_log_get_stream(), title, buf, len);
      15                 :            : 
      16                 :          0 :         return 0;
      17                 :            : }
      18                 :            : 
      19         [ -  + ]:        252 : RTE_LOG_REGISTER_SUFFIX(zsda_logtype_gen, gen, NOTICE);

Generated by: LCOV version 1.14