LCOV - code coverage report
Current view: top level - drivers/crypto/bcmfs - bcmfs_logs.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 2 7 28.6 %
Date: 2024-12-01 18:57:19 Functions: 2 3 66.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 8 25.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2020 Broadcom
       3                 :            :  * All rights reserved.
       4                 :            :  */
       5                 :            : 
       6                 :            : #include <rte_log.h>
       7                 :            : #include <rte_hexdump.h>
       8                 :            : 
       9                 :            : #include "bcmfs_logs.h"
      10                 :            : 
      11                 :            : int
      12                 :          0 : bcmfs_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
      13                 :            :                 const void *buf, unsigned int len)
      14                 :            : {
      15         [ #  # ]:          0 :         if (level > rte_log_get_global_level())
      16                 :            :                 return 0;
      17         [ #  # ]:          0 :         if (level > (uint32_t)(rte_log_get_level(logtype)))
      18                 :            :                 return 0;
      19                 :            : 
      20                 :          0 :         rte_hexdump(rte_log_get_stream(), title, buf, len);
      21                 :          0 :         return 0;
      22                 :            : }
      23                 :            : 
      24         [ -  + ]:        251 : RTE_LOG_REGISTER_SUFFIX(bcmfs_conf_logtype, config, NOTICE)
      25         [ -  + ]:        251 : RTE_LOG_REGISTER_SUFFIX(bcmfs_dp_logtype, fp, NOTICE)

Generated by: LCOV version 1.14