]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/ubsha1.c
karo: tx6ul: fix bogus GPIO numbers
[karo-tx-uboot.git] / tools / ubsha1.c
index c003f9ad19f1c648e710d89e9d98d0950398f965..4a17246da78f1832876771000127c61183827232 100644 (file)
@@ -13,7 +13,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 +63,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) {