X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flog.h;h=e7fc8acba1341c182078a83a9657f789d0354ef8;hb=018a47ceef4632b5f103fdbd8a08d62e96ef854b;hp=ef4dbd3ce08f618a98965a4e01d6a5f5cd3df205;hpb=5cd7979e62613e1d015f71cb85430abfddc2109f;p=i3%2Fi3 diff --git a/include/log.h b/include/log.h index ef4dbd3c..e7fc8acb 100644 --- a/include/log.h +++ b/include/log.h @@ -2,13 +2,12 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * log.c: Logging functions. * */ -#ifndef I3_LOG_H -#define I3_LOG_H +#pragma once #include #include @@ -79,14 +78,14 @@ void set_verbosity(bool _verbose); * */ void debuglog(char *fmt, ...) - __attribute__ ((format (printf, 1, 2))); + __attribute__((format(printf, 1, 2))); /** * Logs the given message to stdout while prefixing the current time to it. * */ void errorlog(char *fmt, ...) - __attribute__ ((format (printf, 1, 2))); + __attribute__((format(printf, 1, 2))); /** * Logs the given message to stdout while prefixing the current time to it, @@ -94,7 +93,7 @@ void errorlog(char *fmt, ...) * */ void verboselog(char *fmt, ...) - __attribute__ ((format (printf, 1, 2))); + __attribute__((format(printf, 1, 2))); /** * Deletes the unused log files. Useful if i3 exits immediately, eg. @@ -102,5 +101,3 @@ void verboselog(char *fmt, ...) * failures. This function is invoked automatically when exiting. */ void purge_zerobyte_logfile(void); - -#endif