diff --git a/lib/print.c b/lib/print.c index 592a237..106a088 100644 --- a/lib/print.c +++ b/lib/print.c @@ -13,7 +13,7 @@ * */ /** printing utilities to replace the large printf from the standard library (code) - * @file print.c + * @file * @author King Kévin * @date 2017-2019 */ @@ -36,10 +36,10 @@ uint8_t print_error; */ static void print_printed(size_t* length, size_t printed) { - if (NULL==length) { // check if total is provided + if (NULL == length) { // check if total is provided return; } - if (*length>SIZE_MAX-printed) { // prevent integer overflow + if (*length > SIZE_MAX - printed) { // prevent integer overflow *length = SIZE_MAX; // set to maximum print_error |= PRINT_ERROR_MAX; // set error } else { diff --git a/lib/print.h b/lib/print.h index 71bc928..78d31d1 100644 --- a/lib/print.h +++ b/lib/print.h @@ -28,7 +28,7 @@ * - H for uint64_t upper case hexadecimal * - b for up to uint32_t bits * - B for uint64_t bits - * @file print.h + * @file * @author King Kévin * @date 2017-2019 */