-
Notifications
You must be signed in to change notification settings - Fork 349
sof-logger: print error if -u uart option is given with no infile #6846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
paulstelian97
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this is in here in the first place. There may be another place to check this but here is good too and should be no issue.
|
Oh actually maybe a warning that e.g. the uart isn't used and the regular etrace/DMA trace file is being read instead could be good? Since you're not aborting the program... |
tools/logger/logger.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| fprintf(stderr, "error: Input file not specified with -u option\n"); | |
| fprintf(stderr, "error: Input file not specified with -i option\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marc-hb Sorry, I didn't you had a different issue. Ok, I'll rephrase that message.
|
@paulstelian97 wrote:
....a bit of surprise (to me as well), but usage() actually calls exit, so the program does exit here. |
tools/logger/logger.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sof-logger -u 115200 -d /lib/firmware/sof-foo.ldc Leads to silent failure as a NULL is passed to open(). Add explicit error handling for this case. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
cb4eb34 to
34c8fe3
Compare
|
@marc-hb Now updated. |
sof-logger -u 115200 -d /lib/firmware/sof-foo.ldc
Leads to silent failure as a NULL is passed to open(). Add explicit error handling for this case.
Signed-off-by: Kai Vehmanen kai.vehmanen@linux.intel.com