summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-01-27 11:13:11 -0800
committerJon Loeliger <jdl@jdl.com>2013-01-27 14:18:35 -0600
commit8055d77a5be3a4204b3aa5cd73ce5cc03362e193 (patch)
treed416f42f2f8c050dff8e50d1c47562014e5a0bb2 /util.h
parent1760e7ca03894689118646e229ca9487158cd0e8 (diff)
downloaddtc-8055d77a5be3a4204b3aa5cd73ce5cc03362e193.tar.gz
Adjust util_is_printable_string() comment and fix test
This commit which changed the behaviour of this function broke one of the tests. Also the comment should be updated to reflect its new behaviour. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/util.h b/util.h
index c8eb45d..e9043be 100644
--- a/util.h
+++ b/util.h
@@ -57,12 +57,14 @@ extern char *xstrdup(const char *s);
extern char *join_path(const char *path, const char *name);
/**
- * Check a string of a given length to see if it is all printable and
- * has a valid terminator.
+ * Check a property of a given length to see if it is all printable and
+ * has a valid terminator. The property can contain either a single string,
+ * or multiple strings each of non-zero length.
*
* @param data The string to check
* @param len The string length including terminator
- * @return 1 if a valid printable string, 0 if not */
+ * @return 1 if a valid printable string, 0 if not
+ */
int util_is_printable_string(const void *data, int len);
/*