printf: minor, fix doc and spacing

This commit is contained in:
King Kévin 2019-12-21 19:14:08 +01:00
parent 914eda7589
commit 20ad271b6a
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
*
*/
/** printing utilities to replace the large printf from the standard library (code)
* @file print.c
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @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 {

View File

@ -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 <kingkevin@cuvoodoo.info>
* @date 2017-2019
*/