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