X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_zip.c;h=7fcd9d5bf8731f1aa9ddd10185994b1ca09e2768;hb=ed36323f6d217050f82a2200475959b8557a47e4;hp=a73c86d5924c59967dba11a611ef9f06d5ef47c1;hpb=f2b96dfbbcd0636e31ebf26bfa9ca91c656660d2;p=u-boot diff --git a/common/cmd_zip.c b/common/cmd_zip.c index a73c86d592..7fcd9d5bf8 100644 --- a/common/cmd_zip.c +++ b/common/cmd_zip.c @@ -2,23 +2,7 @@ * (C) Copyright 2012 * Lei Wen , Marvell Inc. * - * 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. - * - * 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+ */ #include @@ -28,7 +12,6 @@ static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { unsigned long src, dst; unsigned long src_len, dst_len = ~0UL; - char buf[32]; switch (argc) { case 5: @@ -47,8 +30,7 @@ static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 1; printf("Compressed size: %ld = 0x%lX\n", dst_len, dst_len); - sprintf(buf, "%lX", dst_len); - setenv("filesize", buf); + setenv_hex("filesize", dst_len); return 0; }