summaryrefslogtreecommitdiffstats
path: root/commands/loadxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/loadxy.c')
-rw-r--r--commands/loadxy.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/commands/loadxy.c b/commands/loadxy.c
index 85efad67c7..e2d1a11a2c 100644
--- a/commands/loadxy.c
+++ b/commands/loadxy.c
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: © 2012 Robert Jarzmik <robert.jarzmik@free.fr>
+
/**
* @file
* @brief loady and loadx support.
@@ -7,23 +10,6 @@
*
* FileName: commands/loadxy.c
*/
-/*
- * (C) Copyright 2012 Robert Jarzmik <robert.jarzmik@free.fr>
- *
- * 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 as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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.
- *
- */
/*
* Serial up- and download support
@@ -179,7 +165,7 @@ static int do_loadx(int argc, char *argv[])
/* File should exist */
ofd = open_and_lseek(output_file, O_WRONLY | O_CREAT, offset);
if (ofd < 0) {
- perror(argv[0]);
+ printf("Could not open \"%s\": %m\n", output_file);
return 3;
}