evdev: too much logging

This commit is contained in:
Flyinghead 2019-02-06 15:00:40 +01:00
parent 13daefca41
commit a7a5618442
2 changed files with 10 additions and 10 deletions

View File

@ -249,7 +249,7 @@ void ConfigFile::parse(FILE* file)
char* value = trim_ws(separator + 1); char* value = trim_ws(separator + 1);
if (name == NULL || value == NULL) if (name == NULL || value == NULL)
{ {
printf("Malformed entry on config - ignoring @ %d(%s)\n",cline, tl); //printf("Malformed entry on config - ignoring @ %d(%s)\n",cline, tl);
continue; continue;
} }
else else

View File

@ -98,7 +98,7 @@
} }
s32 min = abs.minimum; s32 min = abs.minimum;
s32 max = abs.maximum; s32 max = abs.maximum;
printf("evdev: range of axis %d is from %d to %d\n", code, min, max); //printf("evdev: range of axis %d is from %d to %d\n", code, min, max);
if(inverted) if(inverted)
{ {
this->range = (min - max); this->range = (min - max);
@ -183,7 +183,7 @@
} }
else else
{ {
printf("%s = %s (%d)\n", dc_key.c_str(), keycode.c_str(), code); //printf("%s = %s (%d)\n", dc_key.c_str(), keycode.c_str(), code);
} }
} }
else else
@ -201,11 +201,11 @@
if (name != NULL) if (name != NULL)
{ {
printf("%s = %s (%d)\n", dc_key.c_str(), name, code); //printf("%s = %s (%d)\n", dc_key.c_str(), name, code);
} }
else else
{ {
printf("%s = %d\n", dc_key.c_str(), code); //printf("%s = %d\n", dc_key.c_str(), code);
} }
} }
} }
@ -322,7 +322,7 @@
char name[256] = "Unknown"; char name[256] = "Unknown";
printf("evdev: Trying to open device at '%s'\n", device); //printf("evdev: Trying to open device at '%s'\n", device);
int fd = open(device, O_RDWR); int fd = open(device, O_RDWR);
@ -346,7 +346,7 @@
{ {
// custom mapping defined in config, use that // custom mapping defined in config, use that
mapping_fname = custom_mapping_fname; mapping_fname = custom_mapping_fname;
printf("evdev: user defined custom mapping found (%s)\n", custom_mapping_fname); //printf("evdev: user defined custom mapping found (%s)\n", custom_mapping_fname);
} }
else else
{ {
@ -367,7 +367,7 @@
string dir = get_readonly_data_path(mapping_path); string dir = get_readonly_data_path(mapping_path);
free(mapping_path); free(mapping_path);
if (file_exists(dir)) { if (file_exists(dir)) {
printf("evdev: found a named mapping for the device (%s)\n", name_cfg); //printf("evdev: found a named mapping for the device (%s)\n", name_cfg);
mapping_fname = name_cfg; mapping_fname = name_cfg;
} }
else { else {
@ -416,7 +416,7 @@
if(mapping_fd != NULL) if(mapping_fd != NULL)
{ {
printf("evdev: reading mapping file: '%s'\n", mapping_fname); //printf("evdev: reading mapping file: '%s'\n", mapping_fname);
loaded_mappings.insert(std::make_pair(string(mapping_fname), load_mapping(mapping_fd))); loaded_mappings.insert(std::make_pair(string(mapping_fname), load_mapping(mapping_fd)));
fclose(mapping_fd); fclose(mapping_fd);
@ -437,7 +437,7 @@
} }
else else
{ {
perror("evdev: open"); perror(device);
return -1; return -1;
} }
} }