6 * pr_log - print things with varying levels of importance
8 * pr_log is a "logger" styled similarly to Linux's printk() and pr_*() macros.
9 * The amount of debug output is controlled by the value of the `DEBUG`
10 * environment variable.
12 * It provides work-alikes for Linux's pr_devel, pr_debug, pr_info, etc macros.
15 * #include <ccan/pr_log/pr_log.h>
17 * int main(int argc, char *argv[])
19 * pr_debug("It's working\n");
20 * pr_info("Really, it works\n");
21 * pr_emerg("I'm serious %d\n", argc);
25 * License: LGPL (v2.1 or any later version)
26 * Author: Cody P Schafer <dev@codyps.com>
28 int main(int argc, char *argv[])
30 /* Expect exactly one argument */
34 if (strcmp(argv[1], "depends") == 0) {
35 printf("ccan/compiler\n");