]> git.baikalelectronics.ru Git - uboot.git/commit
env: Fix documentation for env_get_f()
authorMarek Behún <marek.behun@nic.cz>
Sun, 17 Oct 2021 15:36:26 +0000 (17:36 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Oct 2021 18:50:48 +0000 (12:50 -0600)
commit54820a25276fbd7cd9c6bee905a54f8a586a5aa6
tree39c4afcbe35e0c7198043ea7603e5f82001fc04c
parentaf6146f1187c008466c9be3837cfe0fd47167d62
env: Fix documentation for env_get_f()

This function actually returns:
- the number of bytes written into @buf excluding the terminating
  NULL-byte, if there was enough space in @buf
- the number of bytes written into @buf including the terminating
  NULL-byte, if there wasn't enough space in @buf
- -1 if the variable is not found

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/env.h