/*
 * Copyright (C) 2015 Tobias Klauser <tklauser@distanz.ch>
 *
 * This file is part of llmnrd.
 *
 * llmnrd is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2 of the License.
 *
 * llmnrd is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with llmnrd.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef LOG_H
#define LOG_H

#include <stdio.h>

#define log_err(fmt, args...)	fprintf(stderr, "Error: " fmt, ##args)
#define log_warn(fmt, args...)	fprintf(stderr, "Warning: " fmt, ##args)
#define log_info(fmt, args...)	fprintf(stdout, fmt, ##args)
#ifdef DEBUG
# define log_dbg(fmt, args...)	fprintf(stdout, fmt, ##args)
#else
# define log_dbg(fmt, args...)
#endif

#endif /* LOG_H */
maclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/net/dcbevent.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/net/dcbevent.h?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/net/dcbevent.h?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/net/dcbevent.h?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/net/dcbevent.h'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='10468c3b438c36a40e237bab86d15d2b87716046'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/net?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/net/dcbevent.h?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046'>dcbevent.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/net/dcbevent.h?h=nds-private-remove&amp;id=10468c3b438c36a40e237bab86d15d2b87716046&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>