err = fdt_check_header(fdt);
        if (err < 0) {
-               printf("libfdt: %s\n", fdt_strerror(err));
+               printf("fdt_chosen: %s\n", fdt_strerror(err));
                return err;
        }
 
 
                err = fdt_num_reservemap(fdt, &used, &total);
                if (err < 0) {
-                       printf("libfdt: %s\n", fdt_strerror(err));
+                       printf("fdt_chosen: %s\n", fdt_strerror(err));
                        return err;
                }
                if (used >= total) {
-                       printf("WARNING fdt_chosen: "
+                       printf("WARNING: "
                                "no room in the reserved map (%d of %d)\n",
                                used, total);
                        return -1;
                err = fdt_replace_reservemap_entry(fdt, j,
                        initrd_start, initrd_end - initrd_start + 1);
                if (err < 0) {
-                       printf("libfdt: %s\n", fdt_strerror(err));
+                       printf("fdt_chosen: %s\n", fdt_strerror(err));
                        return err;
                }
        }
                 */
                nodeoffset = fdt_add_subnode(fdt, 0, "chosen");
                if (nodeoffset < 0) {
-                       printf("WARNING fdt_chosen: "
-                               "could not create the /chosen node (%s).\n",
+                       printf("WARNING: could not create /chosen %s.\n",
                                fdt_strerror(nodeoffset));
                        return nodeoffset;
                }
                err = fdt_setprop(fdt, nodeoffset,
                        "bootargs", str, strlen(str)+1);
                if (err < 0)
-                       printf("WARNING fdt_chosen: "
-                               "could not set bootargs (%s).\n",
+                       printf("WARNING: could not set bootargs %s.\n",
                                fdt_strerror(err));
        }
        if (initrd_start && initrd_end) {
                err = fdt_setprop(fdt, nodeoffset,
                         "linux,initrd-start", &tmp, sizeof(tmp));
                if (err < 0)
-                       printf("WARNING fdt_chosen: "
-                               "could not set linux,initrd-start (%s).\n",
+                       printf("WARNING: "
+                               "could not set linux,initrd-start %s.\n",
                                fdt_strerror(err));
                tmp = __cpu_to_be32(initrd_end);
                err = fdt_setprop(fdt, nodeoffset,
                        "linux,initrd-end", &tmp, sizeof(tmp));
                if (err < 0)
-                       printf("WARNING fdt_chosen: "
-                               "could not set linux,initrd-end (%s).\n",
+                       printf("WARNING: could not set linux,initrd-end %s.\n",
                                fdt_strerror(err));
        }
 #ifdef OF_STDOUT_PATH
        err = fdt_setprop(fdt, nodeoffset,
                "linux,stdout-path", OF_STDOUT_PATH, strlen(OF_STDOUT_PATH)+1);
        if (err < 0)
-               printf("WARNING fdt_chosen: "
-                       "could not set linux,stdout-path (%s).\n",
+               printf("WARNING: could not set linux,stdout-path %s.\n",
                        fdt_strerror(err));
 #endif
 
 
        err = fdt_check_header(fdt);
        if (err < 0) {
-               printf("libfdt: %s\n", fdt_strerror(err));
+               printf("fdt_env: %s\n", fdt_strerror(err));
                return err;
        }
 
        if (nodeoffset >= 0) {
                err = fdt_del_node(fdt, nodeoffset);
                if (err < 0) {
-                       printf("libfdt: %s\n", fdt_strerror(err));
+                       printf("fdt_env: %s\n", fdt_strerror(err));
                        return err;
                }
        }
         */
        nodeoffset = fdt_add_subnode(fdt, 0, "u-boot-env");
        if (nodeoffset < 0) {
-               printf("WARNING fdt_env: "
-                       "could not create the /u-boot-env node (%s).\n",
+               printf("WARNING: could not create /u-boot-env %s.\n",
                        fdt_strerror(nodeoffset));
                return nodeoffset;
        }
                        continue;
                err = fdt_setprop(fdt, nodeoffset, lval, rval, strlen(rval)+1);
                if (err < 0) {
-                       printf("WARNING fdt_env: "
-                               "could not set %s (%s).\n",
+                       printf("WARNING: could not set %s %s.\n",
                                lval, fdt_strerror(err));
                        return err;
                }
 
        err = fdt_check_header(fdt);
        if (err < 0) {
-               printf("libfdt: %s\n", fdt_strerror(err));
+               printf("fdt_bd_t: %s\n", fdt_strerror(err));
                return err;
        }
 
        if (nodeoffset >= 0) {
                err = fdt_del_node(fdt, nodeoffset);
                if (err < 0) {
-                       printf("libfdt: %s\n", fdt_strerror(err));
+                       printf("fdt_bd_t: %s\n", fdt_strerror(err));
                        return err;
                }
        }
         */
        nodeoffset = fdt_add_subnode(fdt, 0, "bd_t");
        if (nodeoffset < 0) {
-               printf("WARNING fdt_bd_t: "
-                       "could not create the /bd_t node (%s).\n",
+               printf("WARNING: could not create /bd_t %s.\n",
                        fdt_strerror(nodeoffset));
-               printf("libfdt: %s\n", fdt_strerror(nodeoffset));
+               printf("fdt_bd_t: %s\n", fdt_strerror(nodeoffset));
                return nodeoffset;
        }
        /*
                err = fdt_setprop(fdt, nodeoffset,
                        bd_map[i].name, &tmp, sizeof(tmp));
                if (err < 0)
-                       printf("WARNING fdt_bd_t: "
-                               "could not set %s (%s).\n",
+                       printf("WARNING: could not set %s %s.\n",
                                bd_map[i].name, fdt_strerror(err));
        }
        /*
         */
        err = fdt_setprop(fdt, nodeoffset, "enetaddr", &bd->bi_enetaddr, 6);
        if (err < 0)
-               printf("WARNING fdt_bd_t: "
-                       "could not set enetaddr (%s).\n",
+               printf("WARNING: could not set enetaddr %s.\n",
                        fdt_strerror(err));
        err = fdt_setprop(fdt, nodeoffset, "ethspeed", &bd->bi_ethspeed, 4);
        if (err < 0)
-               printf("WARNING fdt_bd_t: "
-                       "could not set ethspeed (%s).\n",
+               printf("WARNING: could not set ethspeed %s.\n",
                        fdt_strerror(err));
        return 0;
 }