Tomato 1.26
[tomato.git] / release / src / router / matrixssl / src / os / debug.c
blob4ca0f9f59040e8ff5f71b26865cbf8d8f60c6d2a
1 /*
2 * debug.c
3 * Release $Name: MATRIXSSL_1_8_8_OPEN $
4 */
5 /*
6 * Copyright (c) PeerSec Networks, 2002-2009. All Rights Reserved.
7 * The latest version of this code is available at http://www.matrixssl.org
9 * This software is open source; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This General Public License does NOT permit incorporating this software
15 * into proprietary programs. If you are unable to comply with the GPL, a
16 * commercial license for this software may be purchased from PeerSec Networks
17 * at http://www.peersec.com
19 * This program is distributed in WITHOUT ANY WARRANTY; without even the
20 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 * See the GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 * http://www.gnu.org/copyleft/gpl.html
29 #include "osLayer.h"
31 /******************************************************************************/
33 Debugging APIs
35 #ifdef DEBUG
37 /* message should contain one %s, unless value is NULL */
38 void matrixStrDebugMsg(char *message, char *value)
40 if (value) {
41 printf(message, value);
42 } else {
43 printf(message);
47 /* message should contain one %d */
48 void matrixIntDebugMsg(char *message, int32 value)
50 printf(message, value);
53 /* message should contain one %p */
54 void matrixPtrDebugMsg(char *message, void *value)
56 printf(message, value);
59 #endif /* DEBUG */
61 /******************************************************************************/