]> Git Repo - J-u-boot.git/blame - boot/image-host.c
Merge tag 'xilinx-for-v2023.04-rc1' of https://source.denx.de/u-boot/custodians/u...
[J-u-boot.git] / boot / image-host.c
CommitLineData
5d3248a6
SG
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Image code used by host tools (and not boards)
4 *
5 * (C) Copyright 2008 Semihalf
6 *
7 * (C) Copyright 2000-2006
8 * Wolfgang Denk, DENX Software Engineering, [email protected].
9 */
10
11#include <time.h>
12
13void memmove_wd(void *to, void *from, size_t len, ulong chunksz)
14{
15 memmove(to, from, len);
16}
17
18void genimg_print_size(uint32_t size)
19{
20 printf("%d Bytes = %.2f KiB = %.2f MiB\n", size, (double)size / 1.024e3,
21 (double)size / 1.048576e6);
22}
23
24void genimg_print_time(time_t timestamp)
25{
26 printf("%s", ctime(&timestamp));
27}
This page took 0.040058 seconds and 4 git commands to generate.