]> git.zerfleddert.de Git - proxmark3-svn/blob - client/messages.h
trying to tweak uart code, for better flashing
[proxmark3-svn] / client / messages.h
1 /**
2 * Proxmark3 (debug) messages
3 *
4 * Copyright (c) 2012, Roel Verdult
5 *
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.
10 *
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
14 * more details.
15 *
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/>
18 *
19 *
20 * @file messages.h
21 * @brief
22 */
23
24 #ifndef _PROXMARK_MESSAGES_H_
25 #define _PROXMARK_MESSAGES_H_
26
27 // Useful macros
28 #ifdef DEBUG
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__ )
31 #else
32 #define DBG(...) {}
33 #endif
34
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__ )
38
39 #endif // _PROXMARK_MESSAGES_H_
Impressum, Datenschutz