Skip to content
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

Log Xebec vendor command and decoded data #287

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

jjakob
Copy link
Contributor

@jjakob jjakob commented Aug 28, 2023

I'm not sure if this is the best place to put this. The only other possibly better place is in SCSI2SD in the DATA_OUT callback function, but that is part of the library and so can't access the log functions. I'm also not sure if I need to add a check somewhere if debug logging is enabled.

@PetteriAimonen
Copy link
Collaborator

I think this is the best place, it keeps all the non-essential trace logging in one place, even if it needs a bit funny if-conditions to do so. Because this is using dbgmsg() (as opposed to logmsg()), it automatically checks whether debug log is enabled before formatting the message.

To me this looks ready to merge.

@jjakob jjakob marked this pull request as ready for review August 28, 2023 17:19
@jjakob
Copy link
Contributor Author

jjakob commented Aug 28, 2023

I tested it on hardware and couldn't see any issues.

@aperezbios aperezbios merged commit f430b9e into ZuluSCSI:main Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants