[PATCH] sandbox: common: fix device names for environment files (-e)

Peter Korsgaard jacmet at sunsite.dk
Tue Dec 15 10:42:13 EST 2009


The env%d string got created, but the the hardcoded "env" string was
always used instead, causing errors with loading the env.

Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
 arch/sandbox/os/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c
index 90486f8..d63a2f4 100644
--- a/arch/sandbox/os/common.c
+++ b/arch/sandbox/os/common.c
@@ -317,7 +317,7 @@ int main(int argc, char *argv[])
 			break;
 		case 'e':
 			sprintf(str, "env%d", envno);
-			ret = add_image(optarg, "env");
+			ret = add_image(optarg, str);
 			if (ret)
 				exit(1);
 			envno++;
-- 
1.6.5





More information about the u-boot-v2 mailing list