-
Notifications
You must be signed in to change notification settings - Fork 13
lib: bm_zms: misc cleanup #350
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
base: main
Are you sure you want to change the base?
Conversation
Clarifies the explicit error returned by the function. Signed-off-by: Mirko Covizzi <[email protected]>
You can find the documentation preview for this PR here. |
07772a6
to
611c311
Compare
611c311
to
0240058
Compare
Adds input parameter checks. Signed-off-by: Mirko Covizzi <[email protected]>
0240058
to
13ee4ca
Compare
Adds missing include for `atomic.h`. Signed-off-by: Mirko Covizzi <[email protected]>
Updates the Doxygen to use proper parameter formatting. Signed-off-by: Mirko Covizzi <[email protected]>
zassert_true(err == -EINVAL, "bm_zms_register unexpected failure"); | ||
|
||
err = bm_zms_register(&fixture->fs, NULL); | ||
zassert_true(err == -EINVAL, "bm_zms_register unexpected failure"); | ||
|
||
err = bm_zms_register(&fixture->fs, &bm_zms_test_handler); | ||
zassert_true(err == 0, "bm_zms_register call failure"); |
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.
This file can probably be cleaned a bit like this. Could be left as a separate PR.
zassert_true(err == -EINVAL, "bm_zms_register unexpected failure"); | |
err = bm_zms_register(&fixture->fs, NULL); | |
zassert_true(err == -EINVAL, "bm_zms_register unexpected failure"); | |
err = bm_zms_register(&fixture->fs, &bm_zms_test_handler); | |
zassert_true(err == 0, "bm_zms_register call failure"); | |
zassert_equal(-EINVAL, err); | |
err = bm_zms_register(&fixture->fs, NULL); | |
zassert_equal(-EINVAL, err); | |
err = bm_zms_register(&fixture->fs, &bm_zms_test_handler); | |
zassert_ok(err, "bm_zms_register call failure"); |
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.
Yes, should be separate
Changes `LOG_INF` to `LOG_ERR` where errors are reported. Signed-off-by: Mirko Covizzi <[email protected]>
Clarifies the explicit error returned by
the function.
Adds input parameter checks.
Adds missing include for
atomic.h
.Updates the Doxygen to use proper parameter formatting.
Changes
LOG_INF
toLOG_ERR
where errors arereported.