X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fcmd_cramfs.c;h=1d31326bd648277826514031271568cfe1fa9ffb;hb=afff13790e38eea6378801616b1749464f796ad3;hp=e7f496e4eacc2956bac5965e3a5696343632c0b7;hpb=62a813bcacd944cf3adcca05dc705721974ac53a;p=oweals%2Fu-boot.git diff --git a/common/cmd_cramfs.c b/common/cmd_cramfs.c index e7f496e4ea..1d31326bd6 100644 --- a/common/cmd_cramfs.c +++ b/common/cmd_cramfs.c @@ -1,18 +1,5 @@ /* - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ * * based on: cmd_jffs2.c * @@ -146,11 +133,9 @@ int do_cramfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) size = cramfs_load ((char *) offset, &part, filename); if (size > 0) { - char buf[10]; printf("### CRAMFS load complete: %d bytes loaded to 0x%lx\n", size, offset); - sprintf(buf, "%x", size); - setenv("filesize", buf); + setenv_hex("filesize", size); } else { printf("### CRAMFS LOAD ERROR<%x> for %s!\n", size, filename); }