diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-28 13:47:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-28 14:00:42 +1000 |
commit | cbc526110a6a0fcf5e7b6b6454a004b5a01d5086 (patch) | |
tree | 1e6bf2e6150077fbd907e5fc196d2a182a52d63f /tools | |
parent | 68c0ba58aa1e3bc12695aa16330ef0b4836ff217 (diff) | |
download | libwacom-cbc526110a6a0fcf5e7b6b6454a004b5a01d5086.tar.gz |
tools: fix an indentation issue in list-compatible-styli
Was using spaces instead of tabs like everything else does
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/list-compatible-styli.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/tools/list-compatible-styli.c b/tools/list-compatible-styli.c index 536ecee..1233a20 100644 --- a/tools/list-compatible-styli.c +++ b/tools/list-compatible-styli.c @@ -37,31 +37,31 @@ static void print_device_info(const WacomDeviceDatabase *db, const WacomDevice *device) { - const int *styli; - int nstyli; + const int *styli; + int nstyli; - printf("- name: '%s'\n", libwacom_get_name(device)); - if (libwacom_get_model_name(device)) { - printf(" model: '%s'\n", libwacom_get_model_name(device)); - } - if (!libwacom_has_stylus(device)) { - printf(" styli: [] # no styli defined\n"); - return; - } + printf("- name: '%s'\n", libwacom_get_name(device)); + if (libwacom_get_model_name(device)) { + printf(" model: '%s'\n", libwacom_get_model_name(device)); + } + if (!libwacom_has_stylus(device)) { + printf(" styli: [] # no styli defined\n"); + return; + } - printf(" styli:\n"); + printf(" styli:\n"); - styli = libwacom_get_supported_styli(device, &nstyli); - for (int i = 0; i < nstyli; i++) { - const WacomStylus *s; - char id[64]; + styli = libwacom_get_supported_styli(device, &nstyli); + for (int i = 0; i < nstyli; i++) { + const WacomStylus *s; + char id[64]; - s = libwacom_stylus_get_for_id(db, styli[i]); - snprintf(id, sizeof(id), "0x%x", libwacom_stylus_get_id(s)); - printf(" - { id: %*s'%s', name: '%s' }\n", - (int)(7 - strlen(id)), " ", id, - libwacom_stylus_get_name(s)); - } + s = libwacom_stylus_get_for_id(db, styli[i]); + snprintf(id, sizeof(id), "0x%x", libwacom_stylus_get_id(s)); + printf(" - { id: %*s'%s', name: '%s' }\n", + (int)(7 - strlen(id)), " ", id, + libwacom_stylus_get_name(s)); + } } int main(int argc, char **argv) |