1 /******************************************************************************
4 * Copyright (c) 2020, longpanda <admin@ventoy.net>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 3 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef __BISO_DUMP_H__
22 #define __BISO_DUMP_H__
24 #define BISO_DUMP_INT(Name, Value) BISO_DUMP("%-24s : %u\n", Name, Value)
25 #define BISO_DUMP_STR(Name, Value, szBuf) \
26 BISO_DUMP("%-24s : %s\n", Name, BISO_UTIL_CopyStr(Value, sizeof(Value), szBuf))
28 #define BISO_DUMP_CHAR(str, len) \
31 for (uiLoop = 0; uiLoop < (UINT)len; uiLoop++)\
33 BISO_DUMP("%c", str[uiLoop]);\
39 #define BISO_DUMP_BYTE(Buf, Len) \
42 for (i = 0; i < Len; i++) \
44 BISO_DUMP("%02x ", Buf[i]); \
50 #define BISO_DUMP_DAY(Name, Value) \
54 _ulRet = BISO_9660_ParseDate84261((Value), &_stDate);\
55 if (BISO_SUCCESS == _ulRet)\
57 BISO_DUMP("%-24s : %04u-%02u-%02u %02u:%02u:%02u.%03u ",\
58 (Name), _stDate.usYear, _stDate.ucMonth, _stDate.ucDay,\
59 _stDate.ucHour, _stDate.ucMin, _stDate.ucSecond,\
61 if (_stDate.cZone > 0)\
63 BISO_DUMP("GMT+%d\n", _stDate.cZone);\
67 BISO_DUMP("GMT%d\n", _stDate.cZone);\
72 BISO_DUMP("%-24s : ---\n", (Name));\
76 VOID BISO_DUMP_ShowFileTree
79 IN CONST BISO_DIR_TREE_S
*pstDirTree
82 #endif /* __BISO_DUMP_H__ */