#endif
#include "tizen/src/util/new_debug_ch.h"
-DECLARE_DEBUG_CHANNEL(9p_local);
+DECLARE_DEBUG_CHANNEL(9pfs_local);
#ifndef XFS_SUPER_MAGIC
#define XFS_SUPER_MAGIC 0x58465342
#endif
#include "../../tizen/src/debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, qemu_9p_test);
+MULTI_DEBUG_CHANNEL(tizen, 9pfs);
int open_fd_hw;
int total_open_fd;
#include "hw/virtio/maru_virtio_touchscreen.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, maru_finger);
+MULTI_DEBUG_CHANNEL(qemu, finger);
/* ===== Reference: http://content.gpwiki.org/index.php/SDL:Tutorials:Drawing_and_Filling_Circles ===== */
#include <SDL_syswm.h>
#endif
-MULTI_DEBUG_CHANNEL(tizen, maru_sdl);
+MULTI_DEBUG_CHANNEL(tizen, sdl);
static DisplayChangeListener *dcl;
#include "hw/pci/maru_brightness.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, sdl_processing);
+MULTI_DEBUG_CHANNEL(tizen, sdl_op);
/* Image processing functions using the pixman library */
#include "eventcast/encode_fb.h"
-MULTI_DEBUG_CHANNEL(tizen, maru_shm);
+MULTI_DEBUG_CHANNEL(tizen, shm);
static DisplayChangeListener *dcl;
#include "util/new_debug_ch.h"
-DECLARE_DEBUG_CHANNEL(ecs_eventcast);
+DECLARE_DEBUG_CHANNEL(ecs);
#define MSG_BUF_SIZE 255
#define MSG_LEN_SIZE 4
#include "util/new_debug_ch.h"
-DECLARE_DEBUG_CHANNEL(app_eventcast);
+DECLARE_DEBUG_CHANNEL(eventcast);
#define EVENTCAST_MSG_HANDSHAKE_KEY 100
#define MSG_BUF_SIZE 255
#include "util/new_debug_ch.h"
-DECLARE_DEBUG_CHANNEL(app_eventcast);
+DECLARE_DEBUG_CHANNEL(eventcast);
#if !defined(CONFIG_SDL) && !defined(CONFIG_USE_SHM)
bool maru_extract_framebuffer(void *buffer)
#include "util/new_debug_ch.h"
-DECLARE_DEBUG_CHANNEL(app_eventcast);
+DECLARE_DEBUG_CHANNEL(eventcast);
typedef struct sensor_state {
bool is_sensor_event;
#include "ecs/ecs_eventcast.h"
#include "util/new_debug_ch.h"
-DECLARE_DEBUG_CHANNEL(app_eventcast);
+DECLARE_DEBUG_CHANNEL(eventcast);
static int touch_device_status;
static bool send_display_image_data(void);
#include "util/sdb.h"
/* define debug channel */
-MULTI_DEBUG_CHANNEL(tizen, maru_pm);
+MULTI_DEBUG_CHANNEL(tizen, power_mgr);
ACPIREGS *maru_pm_ar;
acpi_update_sci_fn maru_pm_update_sci;
#include "skin/maruskin_server.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, maru-brightness);
+MULTI_DEBUG_CHANNEL(tizen, brightness);
#define QEMU_DEV_NAME "maru-brightness"
#include "hw/maru_device_ids.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, maru-camera);
+MULTI_DEBUG_CHANNEL(tizen, camera);
#define MARU_PCI_CAMERA_DEVICE_NAME "maru-camera"
#include "maru_camera_darwin.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, camera_darwin);
+MULTI_DEBUG_CHANNEL(tizen, camera);
static void UYVYToYUV420(unsigned char *bufsrc, unsigned char *bufdest,
int width, int height);
#include "maru_camera_darwin.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, maru-camera);
+MULTI_DEBUG_CHANNEL(tizen, camera);
#define MARUCAM_THREAD_NAME "marucam_worker_thread"
#include <libv4l2.h>
#include <libv4lconvert.h>
-MULTI_DEBUG_CHANNEL(tizen, maru-camera);
+MULTI_DEBUG_CHANNEL(tizen, camera);
#define MARUCAM_THREAD_NAME "marucam_worker_thread"
#include "mmsystem.h" /* for MAKEFOURCC macro */
#include "maru_camera_win32_interface.h"
-MULTI_DEBUG_CHANNEL(tizen, maru-camera);
+MULTI_DEBUG_CHANNEL(tizen, camera);
/*
* COM Interface implementations
#include "maru_usb_touchscreen.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, usb_touchscreen);
+MULTI_DEBUG_CHANNEL(qemu, usb_tsp);
#define MAX_TOUCH_EVENT_CNT 128
#include "emul_state.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-esm);
+MULTI_DEBUG_CHANNEL(qemu, esm);
#define SYSTEM_MODE_LAYER 1
#include "debug_ch.h"
#include "ecs/ecs.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-evdi);
+MULTI_DEBUG_CHANNEL(qemu, evdi);
#define EVDI_DEVICE_NAME "virtio-evdi"
#include "maru_virtio_jack.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-jack);
+MULTI_DEBUG_CHANNEL(qemu, jack);
#define JACK_DEVICE_NAME "jack"
#define _MAX_BUF 1024
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-kbd);
+MULTI_DEBUG_CHANNEL(qemu, keyboard);
VirtIOKeyboard *vkbd;
VirtQueueElement elem;
#include "debug_ch.h"
#include "ecs/ecs.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-nfc);
+MULTI_DEBUG_CHANNEL(qemu, nfc);
#define NFC_DEVICE_NAME "virtio-nfc"
#include "maru_virtio_power.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-power);
+MULTI_DEBUG_CHANNEL(qemu, power);
#define POWER_DEVICE_NAME "power_supply"
#define _MAX_BUF 1024
#include "debug_ch.h"
#include "ecs/ecs.h"
-MULTI_DEBUG_CHANNEL(qemu, virtio-sensor);
+MULTI_DEBUG_CHANNEL(qemu, sensor);
#define SENSOR_DEVICE_NAME "sensor"
#define _MAX_BUF 1024
#include "emul_state.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, touchscreen);
+MULTI_DEBUG_CHANNEL(qemu, tsp);
#define DEVICE_NAME "virtio-touchscreen"
#include "util/new_debug_ch.h"
#include "ecs/ecs.h"
-DECLARE_DEBUG_CHANNEL(virtio-vmodem);
+DECLARE_DEBUG_CHANNEL(vmodem);
#define VMODEM_DEVICE_NAME "virtio-vmodem"
#include "util/maru_err_table.h"
#endif
-MULTI_DEBUG_CHANNEL(qemu, skin_client);
+MULTI_DEBUG_CHANNEL(qemu, skinclient);
#define SKIN_SERVER_READY_TIME 3 /* second */
#include "emul_state.h"
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, skin_keymap);
+MULTI_DEBUG_CHANNEL(qemu, skinkeymap);
#ifdef KEYMAP_DEBUG
static void trace_binary(int decimal)
#include "target-i386/hax-i386.h"
#endif
-MULTI_DEBUG_CHANNEL(qemu, skin_operation);
+MULTI_DEBUG_CHANNEL(qemu, skin_op);
#define RESUME_KEY_SEND_INTERVAL 500 /* milli-seconds */
#include "debug_ch.h"
-MULTI_DEBUG_CHANNEL(qemu, skin_server);
+MULTI_DEBUG_CHANNEL(qemu, skinserver);
#define MAX_REQ_ID 0x7fffffff
static int fd = STDOUT_FILENO;
static const char * const debug_classes[] =
- {"SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "TRACE"};
+ {"SEVR", "WARN", "INFO", "CONF", "FINE", "TRCE"};
#define MAX_DEBUG_OPTIONS 256
if (!(_dbg_get_channel_flags(channel) & (1 << cls))) {
return -1;
+ } else {
+ channel->name[MAX_NAME_LEN] = '\0';
}
ret += get_timeofday(buf_msg, sizeof(buf_msg));
- ret += g_snprintf(buf_msg + ret, sizeof(buf_msg) - ret, "(%5d) [%s:%s] ",
+ ret += g_snprintf(buf_msg + ret, sizeof(buf_msg) - ret, "(%5d) [%4s:%10s] ",
qemu_get_thread_id(), debug_classes[cls], channel->name);
va_start(valist, format);
#include <sys/types.h>
-#define MAX_NAME_LEN 15
+#define MAX_NAME_LEN 10
// #define NO_DEBUG
#ifdef __cplusplus
ptm = localtime(&ti);
ret = strftime(buf, size, "%H:%M:%S", ptm);
- return ret + g_snprintf(buf + ret, size - ret, ".%06ld", (long)tv.tv_usec);
+ return ret + g_snprintf(buf + ret, size - ret, ".%03ld", (long)tv.tv_usec/1000);
}
int get_number_of_processors(void);