-
Notifications
You must be signed in to change notification settings - Fork 9
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
Frank eitt fix #771
Conversation
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"); |
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.
can we do this as a debug statement (OC_DEBUG)?
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.
OC_DBG
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.
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); |
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.
OC_DEBUG?
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 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?
~format |
~format |
No description provided.