Coverage Report

Created: 2019-07-03 22:50

/home/liu/buildslave/linux-x64-runtests/build/lib/ccv_output.c
Line
Count
Source
1
#include "ccv.h"
2
3
static int cli_output_levels = 0xffffffff & (~CCV_CLI_VERBOSE);
4
5
int ccv_cli_output_level_and_above(int level)
6
2
{
7
2
  if (level == CCV_CLI_NONE)
8
1
    return CCV_CLI_NONE;
9
1
  int i;
10
1
  uint32_t levels = 0;
11
33
  for (i = 0; i < 32; 
i++32
)
12
32
    if (level <= (1u << i))
13
31
      levels |= 1u << i;
14
1
  return (int)levels;
15
1
}
16
17
void ccv_cli_set_output_levels(int levels)
18
3
{
19
3
  cli_output_levels = levels;
20
3
}
21
22
int ccv_cli_get_output_levels(void)
23
26.0M
{
24
26.0M
  return cli_output_levels;
25
26.0M
}