From 93597f1ed924c8faeb62b0b56e3d87d0806f70c4 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 7 May 2020 14:35:09 -0700 Subject: [PATCH] Oceanic: when encountering an unknown device, report the version string This is purely to make things easier to debug when new devices show up. The version string technically ends up being visible in the HEX dump of the download too, but that's just not very convenient. Signed-off-by: Linus Torvalds --- src/oceanic_atom2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oceanic_atom2.c b/src/oceanic_atom2.c index 9183b0a..a132b9e 100644 --- a/src/oceanic_atom2.c +++ b/src/oceanic_atom2.c @@ -1011,7 +1011,7 @@ oceanic_atom2_device_open (dc_device_t **out, dc_context_t *context, dc_iostream } else if (OCEANIC_COMMON_MATCH (device->base.version, oceanic_default_version)) { device->base.layout = &oceanic_default_layout; } else { - WARNING (context, "Unsupported device detected!"); + WARNING (context, "Unsupported device detected (%s)!", device->base.version); device->base.layout = &oceanic_default_layout; if (memcmp(device->base.version + 12, "256K", 4) == 0) { device->base.layout = &oceanic_atom1_layout;