LCOV - code coverage report
Current view: top level - spdk/lib/util - strerror_tls.c (source / functions) Hit Total Coverage
Test: Combined Lines: 3 3 100.0 %
Date: 2024-07-13 04:47:26 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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                 :     265366 : spdk_strerror(int errnum)
      12                 :            : {
      13                 :     265366 :         spdk_strerror_r(errnum, strerror_message, sizeof(strerror_message));
      14                 :     265366 :         return strerror_message;
      15                 :            : }

Generated by: LCOV version 1.14