]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/messages.h
2 * Proxmark3 (debug) messages
4 * Copyright (c) 2012, Roel Verdult
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>
24 #ifndef _PROXMARK_MESSAGES_H_
25 #define _PROXMARK_MESSAGES_H_
29 // #define DBG(x, args...) printf("DBG %s:%d: " x "\n", __FILE__, __LINE__,## args )
30 #define DBG(x, ...) fprintf(stderr, "DBG %s:%d: " x "\n", __FILE__, __LINE__, ## __VA_ARGS__ )
35 #define INFO(x, ...) printf("INFO: " x "\n", ## __VA_ARGS__ )
36 #define WARN(x, ...) printf("WARNING: " x "\n", ## __VA_ARGS__ )
37 #define ERR(x, ...) fprintf(stderr, "ERROR: " x "\n", ## __VA_ARGS__ )
39 #endif // _PROXMARK_MESSAGES_H_