Skip to content

Conversation

muneebahmed10
Copy link
Contributor

@muneebahmed10 muneebahmed10 commented Aug 5, 2020

Description of changes:
Remove C99 %hhu format specifiers, add casts to unsigned long wherever %lu is used for size_t, and log strings instead of status codes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2020

Codecov Report

Merging #1097 into development will increase coverage by 1.77%.
The diff coverage is 80.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1097      +/-   ##
===============================================
+ Coverage        96.54%   98.31%   +1.77%     
===============================================
  Files                9        4       -5     
  Lines             5643     1189    -4454     
  Branches           641      369     -272     
===============================================
- Hits              5448     1169    -4279     
+ Misses               9        0       -9     
+ Partials           186       20     -166     
Impacted Files Coverage Δ
libraries/standard/mqtt/src/mqtt.c 99.39% <ø> (+4.98%) ⬆️
libraries/standard/mqtt/src/mqtt_lightweight.c 96.92% <ø> (+2.40%) ⬆️
libraries/standard/mqtt/src/mqtt_state.c 98.42% <ø> (+2.48%) ⬆️
libraries/standard/http/src/http_client.c 98.53% <80.00%> (+11.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edf5af8...8f3c930. Read the comment docs.

@muneebahmed10 muneebahmed10 changed the title Address potential warnings for format specifiers Improve format specifiers in logs Aug 5, 2020
sarenameas
sarenameas previously approved these changes Aug 5, 2020
aggarg
aggarg previously approved these changes Aug 7, 2020
@muneebahmed10 muneebahmed10 dismissed stale reviews from aggarg and sarenameas via 8f3c930 August 7, 2020 14:56
@muneebahmed10 muneebahmed10 merged commit 47cc168 into aws:development Aug 7, 2020
@muneebahmed10 muneebahmed10 deleted the format-specifier branch August 7, 2020 17:37
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 27, 2020
* Remove C99 %hhu format specifier

* Add unsigned long to %lu format specifiers

* Log stringified status codes instead of integers
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 28, 2020
* Remove C99 %hhu format specifier

* Add unsigned long to %lu format specifiers

* Log stringified status codes instead of integers
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 31, 2020
* Remove C99 %hhu format specifier

* Add unsigned long to %lu format specifiers

* Log stringified status codes instead of integers
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Sep 1, 2020
* Remove C99 %hhu format specifier

* Add unsigned long to %lu format specifiers

* Log stringified status codes instead of integers
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.

5 participants