Merge https://gitlab.denx.de/u-boot/custodians/u-boot-marvell
[oweals/u-boot.git] / tools / ubsha1.c
index c003f9ad19f1c648e710d89e9d98d0950398f965..90a6f3f59d2da956b6342284ed66bffa9e8671f9 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2007
  * Heiko Schocher, DENX Software Engineering, <hs@denx.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include "os_support.h"
@@ -13,7 +12,7 @@
 #include <errno.h>
 #include <string.h>
 #include <sys/stat.h>
-#include "sha1.h"
+#include <u-boot/sha1.h>
 
 int main (int argc, char **argv)
 {
@@ -63,10 +62,10 @@ int main (int argc, char **argv)
                sha1_csum ((unsigned char *) data, len, (unsigned char *)output);
 
                printf ("U-Boot sum:\n");
-               for (i = 0; i < 20 ; i++) {
-                   printf ("%02X ", output[i]);
-               }
-               printf ("\n");
+               for (i = 0; i < 20 ; i++) {
+                   printf ("%02X ", output[i]);
+               }
+               printf ("\n");
                /* overwrite the sum in the bin file, with the actual */
                lseek (ifd, SHA1_SUM_POS, SEEK_END);
                if (write (ifd, output, SHA1_SUM_LEN) != SHA1_SUM_LEN) {