changeset 12:869ce9f61a67

fc-fsio format command: buglet in the usage error handling
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 03 Oct 2016 05:54:21 +0000
parents 21eec7569eb8
children 46ad66a231af
files rvinterf/etmsync/fsmisc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/etmsync/fsmisc.c	Mon Jul 25 21:09:33 2016 +0000
+++ b/rvinterf/etmsync/fsmisc.c	Mon Oct 03 05:54:21 2016 +0000
@@ -29,7 +29,7 @@
 	slen = strlen(argv[1]);
 	if (slen >= TMFFS_STRING_SIZE) {
 		printf("error: argument exceeds string length limit\n");
-		return;
+		return(ERROR_USAGE);
 	}
 	dp = cmdpkt + 1;
 	*dp++ = ETM_FFS2;