Merge pull request #424 from yashi/canbusload-add-error-message

canbusload: Enhance error message for missing bitrate
pull/438/head
Marc Kleine-Budde 2023-06-02 14:09:12 +02:00 committed by GitHub
commit 9e08e2272b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -325,6 +325,7 @@ int main(int argc, char **argv)
nptr = strchr(ptr, '@'); nptr = strchr(ptr, '@');
if (!nptr) { if (!nptr) {
fprintf(stderr, "Specify CAN interfaces in the form <CAN interface>@<bitrate>, e.g. can0@500000\n");
print_usage(prg); print_usage(prg);
return 1; return 1;
} }