Add constants for fast path resume copying
[coreboot.git] / util / mkelfImage / util / bin-to-hex.c
1 #include <stdio.h>
2
3 int main(int argc, char **argv)
4 {
5         int c;
6         int i;
7         i = 0;
8         while((c = getchar()) != EOF) {
9                 if ((i % 16) != 0) {
10                         putchar(' ');
11                 }
12                 printf("0x%02x,", c);
13                 i++;
14                 if ((i %16) == 0) {
15                         putchar('\n');
16                 }
17         }
18         putchar('\n');
19         return 0;
20 }