diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-01-10 13:56:08 -0800 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-01-10 14:15:23 -0800 |
commit | bc456c52dcb71007841b734195f712191012c537 (patch) | |
tree | 6c327d608351367bb3ea50d40823d05ce698faba /android | |
parent | 762d5decf0eaa766e69ecd94f4349be53dedd767 (diff) | |
download | external_qemu-bc456c52dcb71007841b734195f712191012c537.zip external_qemu-bc456c52dcb71007841b734195f712191012c537.tar.gz external_qemu-bc456c52dcb71007841b734195f712191012c537.tar.bz2 |
Don't display warning when emulator is unable to connect to device.
Warning that is displayed when "realisting sensors emulation" component in emulator
is not able to connect to an application streaming sensor changes from an actual
device, that warning confuses users, making them think that emulator didn't
initialize properly. To avoid that confusion, hide that warning under -verbose,
displaying it only if -verbose option has been specified on emulator start.
Change-Id: If40cc726db9bec4ab631dcbdcd02fb98cc30d93a
Diffstat (limited to 'android')
-rw-r--r-- | android/hw-sensors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/hw-sensors.c b/android/hw-sensors.c index 6a7721c..51170cb 100644 --- a/android/hw-sensors.c +++ b/android/hw-sensors.c @@ -25,6 +25,7 @@ #define E(...) derror(__VA_ARGS__) #define W(...) dwarning(__VA_ARGS__) #define D(...) VERBOSE_PRINT(sensors,__VA_ARGS__) +#define V(...) VERBOSE_PRINT(init,__VA_ARGS__) /* define T_ACTIVE to 1 to debug transport communications */ #define T_ACTIVE 0 @@ -664,7 +665,8 @@ _hwSensors_init( HwSensors* h ) * sensor emulation. */ h->sensors_port = sensors_port_create(h); if (h->sensors_port == NULL) { - W("Unable to create sensors port: %s", strerror(errno)); + V("Realistic sensor emulation is not available, since the remote controller is not accessible:\n %s", + strerror(errno)); } h->service = qemud_service_register("sensors", 0, h, _hwSensors_connect, |