]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/tftp.c
Fix printf errors.
[people/ms/u-boot.git] / net / tftp.c
index 3dd2b06aae16a79e7b94f72bc4e6ef7cc4dbb74d..84d83ca97b1e9f333efe1fa780c3803ce6cadca5 100644 (file)
@@ -178,7 +178,7 @@ TftpSend (void)
                pkt += 5 /*strlen("octet")*/ + 1;
                strcpy ((char *)pkt, "timeout");
                pkt += 7 /*strlen("timeout")*/ + 1;
-               sprintf((char *)pkt, "%d", TIMEOUT);
+               sprintf((char *)pkt, "%lu", TIMEOUT);
 #ifdef ET_DEBUG
                printf("send option \"timeout %s\"\n", (char *)pkt);
 #endif
@@ -474,7 +474,7 @@ TftpStart (void)
                printf ("*** Warning: no boot file name; using '%s'\n",
                        tftp_filename);
        } else {
-               char *p = strchr (p, ':');
+               char *p = strchr (BootFile, ':');
 
                if (p == NULL) {
                        strncpy(tftp_filename, BootFile, MAX_LEN);