summaryrefslogtreecommitdiffstats
path: root/scripts/bareboxenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bareboxenv.c')
-rw-r--r--scripts/bareboxenv.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/scripts/bareboxenv.c b/scripts/bareboxenv.c
index d1cf33a4d9..e954447015 100644
--- a/scripts/bareboxenv.c
+++ b/scripts/bareboxenv.c
@@ -1,21 +1,7 @@
-/*
- * bareboxenv.c - generate or read a barebox environment archive
- *
- * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
+// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-FileCopyrightText: 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+
+/* bareboxenv.c - generate or read a barebox environment archive */
#include <stdio.h>
#include <sys/types.h>
@@ -34,7 +20,7 @@
#include "compiler.h"
#define debug(...)
-#define printk_once(...)
+#define pr_debug_once(...)
/* Find out if the last character of a string matches the one given.
* Don't underrun the buffer if the string length is 0.
@@ -112,6 +98,12 @@ static void usage(char *prgname)
printf( "Usage : %s [OPTION] DIRECTORY FILE\n"
"Load a barebox environment sector into a directory or\n"
"save a directory into a barebox environment sector\n"
+#ifndef __BAREBOX__
+ "\n"
+ "Attention:\n"
+ "Depending on your environment backend storage you need to\n"
+ "erase FILE before you save the new environment.\n"
+#endif
"\n"
"options:\n"
" -s save (directory -> environment sector)\n"