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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2020-05-07 14:35:09 -07:00
parent 6b0cf9a9f3
commit 93597f1ed9

View File

@ -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;