diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-05 11:13:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-05 11:14:05 +0200 |
commit | 7711eb0827fd2a82b4a4d35e4f47a798531ae95c (patch) | |
tree | 02d9c5b110fb3058edd7b65f38e5fed679797aca /common | |
parent | 6fb08dd83576394943a378960b8093ac2e70293c (diff) | |
download | barebox-7711eb0827fd2a82b4a4d35e4f47a798531ae95c.tar.gz barebox-7711eb0827fd2a82b4a4d35e4f47a798531ae95c.tar.xz |
console: return number of characters written in fops_write
struct cdev_operations write() callback is supposed to return the number
of characters written. Do this instead of returning 0 for the console
device files.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c index 406722a1da..ee17a508ba 100644 --- a/common/console.c +++ b/common/console.c @@ -300,7 +300,7 @@ static ssize_t fops_write(struct cdev* dev, const void* buf, size_t count, priv->puts(priv, buf); - return 0; + return count; } int console_register(struct console_device *newcdev) |