Changeset 163e34c in mainline for common/printf/printf_core.c


Ignore:
Timestamp:
2025-04-13T19:33:48Z (3 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
f5e1692
Parents:
97f6b71
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-13 18:56:51)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-13 19:33:48)
Message:

Actually convert the printf outputs everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/printf/printf_core.c

    r97f6b71 r163e34c  
    201201    size_t *written_bytes)
    202202{
    203         int written = ps->str_write(buf, n, ps->data);
    204         if (written < 0)
    205                 return EIO;
     203        errno_t rc = ps->write(buf, n, ps->data);
     204        if (rc != EOK)
     205                return rc;
     206
    206207        _saturating_add(written_bytes, n);
    207208        return EOK;
    208 
    209         #if 0
    210         errno_t rc = ps->write(buf, &n, ps->data);
    211         _saturating_add(written_bytes, n);
    212         return rc;
    213         #endif
    214209}
    215210
     
    14661461
    14671462                rc = _format_number(number, width, precision, base, flags, ps, &counter);
    1468                 if (rc != EOK)
    1469                         continue;
    14701463        }
    14711464
Note: See TracChangeset for help on using the changeset viewer.