ash: output: Fix fmtstr return value
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Feb 2020 17:06:20 +0000 (18:06 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Feb 2020 18:14:45 +0000 (19:14 +0100)
commit3f7fb2c89ad75bbdd3b69e302124c8179c273bb4
tree3aee03325f2422ef780c80bbec5082610fe0b16c
parent970470e235fd2a00d4b020378ddccf769ce534ec
ash: output: Fix fmtstr return value

Upstream commit:

    Date: Sat, 19 May 2018 02:39:44 +0800
    output: Fix fmtstr return value

    The function fmtstr is meant to return the actual length of output
    produced, rather than the untruncated length.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c