1 /* { dg-do compile } */
2 /* { dg-options "-O2 -g" } */
8 #define DEBUG_BUFFER_SIZE 80
12 unifi_trace (void* ospriv
, int level
, const char *fmt
, ...)
14 static char s
[DEBUG_BUFFER_SIZE
];
21 if (unifi_debug
>= level
)
24 len
= vsnprintf (&(s
)[0], (DEBUG_BUFFER_SIZE
), fmt
, args
);
27 if (len
>= DEBUG_BUFFER_SIZE
)
29 (s
)[DEBUG_BUFFER_SIZE
- 2] = '\n';
30 (s
)[DEBUG_BUFFER_SIZE
- 1] = 0;