1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/system/gonk/VolumeManagerLog.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef mozilla_system_volumemanagerlog_h__ 1.9 +#define mozilla_system_volumemanagerlog_h__ 1.10 + 1.11 +#define USE_DEBUG 0 1.12 + 1.13 +#if !defined(VOLUME_MANAGER_LOG_TAG) 1.14 +#define VOLUME_MANAGER_LOG_TAG "VolumeManager" 1.15 +#endif 1.16 + 1.17 +#undef LOG 1.18 +#define LOG(args...) __android_log_print(ANDROID_LOG_INFO, VOLUME_MANAGER_LOG_TAG, ## args) 1.19 +#define ERR(args...) __android_log_print(ANDROID_LOG_ERROR, VOLUME_MANAGER_LOG_TAG, ## args) 1.20 + 1.21 +#if USE_DEBUG 1.22 +#define DBG(args...) __android_log_print(ANDROID_LOG_DEBUG, VOLUME_MANAGER_LOG_TAG, ## args) 1.23 +#else 1.24 +#define DBG(args...) 1.25 +#endif 1.26 + 1.27 +#endif // mozilla_system_volumemanagerlog_h__