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

Frank eitt fix #771

Merged
merged 16 commits into from
Mar 4, 2024
Merged

Frank eitt fix #771

merged 16 commits into from
Mar 4, 2024

Conversation

FrankZRS
Copy link
Collaborator

No description provided.

@FrankZRS FrankZRS marked this pull request as draft February 23, 2024 14:37
api/oc_knx_sec.c Outdated
@@ -670,6 +670,11 @@ oc_core_auth_at_post_handler(oc_request_t *request,
char *if_str = oc_string_array_get_item(str_array, i);
oc_interface_mask_t if_mask =
oc_ri_get_interface_mask(if_str, strlen(if_str));
if (if_mask == OC_IF_LI) {
PRINT(" if.ll is not a valid access scope!\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do this as a debug statement (OC_DEBUG)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OC_DBG

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. I used OC_ERR since it's an error that's leading to a BAD_REQUEST response

@@ -775,7 +774,7 @@ oc_do_s_mode_with_scope_and_check(int scope, const char *resource_url, char *rp,
PRINT(" handling: index %d\n", index);
for (int j = 0; j < ga_len; j++) {
group_address = oc_core_find_group_object_table_group_entry(index, j);
PRINT(" ga : %d\n", group_address);
PRINT(" ga : %lu\n", group_address);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OC_DEBUG?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a PRINT before, I just fixed the format identifier. There's quite a few more PRINT's in this function, do you want me to change them all?

@FrankZRS
Copy link
Collaborator Author

~format

@WAvdBeek
Copy link
Contributor

WAvdBeek commented Mar 4, 2024

~format

@WAvdBeek WAvdBeek marked this pull request as ready for review March 4, 2024 10:29
@WAvdBeek WAvdBeek merged commit 825e000 into master Mar 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants