+/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
* eg. "/sys/devices/platform/HISI00C2:00");
* The Vendor (3 or 4 char), followed by hexdecimal model number : instance id.
*/
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
if (sscanf(syspath, pattern, vendor, &model, &instance, ðid) != 4)
return -EINVAL;
+#pragma GCC diagnostic pop
if (!in_charset(vendor, validchars))
return -ENOENT;