LCOV - code coverage report
Current view: top level - lib/util - strerror_tls.c (source / functions) Hit Total Coverage
Test: ut_cov_unit.info Lines: 3 3 100.0 %
Date: 2024-12-16 14:05:02 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /*   SPDX-License-Identifier: BSD-3-Clause
       2             :  *   Copyright (C) 2017 Intel Corporation.
       3             :  *   All rights reserved.
       4             :  */
       5             : 
       6             : #include "spdk/string.h"
       7             : 
       8             : static __thread char strerror_message[64];
       9             : 
      10             : const char *
      11          37 : spdk_strerror(int errnum)
      12             : {
      13          37 :         spdk_strerror_r(errnum, strerror_message, sizeof(strerror_message));
      14          37 :         return strerror_message;
      15             : }

Generated by: LCOV version 1.15