summaryrefslogtreecommitdiff
path: root/src/core/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-22 16:55:08 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-22 16:55:08 +0200
commitf98f4ace4df1b67572a5fbb3b1924b303d77d773 (patch)
tree062184636ad8ac20f8da52d90018d318e7ca823f /src/core/service.c
parentfc4049c1ab59b4d5460fc6c2076d086a1693a170 (diff)
parent8c7c98398bad362cfae7b5a239cca11b93a67710 (diff)
Merge pull request #1336 from pszewczyk/functionfs_sockets_v3
core: add support for usb functionfs v3
Diffstat (limited to 'src/core/service.c')
-rw-r--r--src/core/service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c
index fc28ba4d07..f7de5e89ff 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -482,6 +482,12 @@ static int service_verify(Service *s) {
return -EINVAL;
}
+ if (s->usb_function_descriptors && !s->usb_function_strings)
+ log_unit_warning(UNIT(s), "Service has USBFunctionDescriptors= setting, but no USBFunctionStrings=. Ignoring.");
+
+ if (!s->usb_function_descriptors && s->usb_function_strings)
+ log_unit_warning(UNIT(s), "Service has USBFunctionStrings= setting, but no USBFunctionDescriptors=. Ignoring.");
+
return 0;
}