Revision c1b71b0c

b/device_tree.c
240 240
     * which phandle id to start allocting phandles.
241 241
     */
242 242
    if (!phandle) {
243
        const char *phandle_start = qemu_opt_get(qemu_get_machine_opts(),
244
                                                 "phandle_start");
245
        if (phandle_start) {
246
            phandle = strtoul(phandle_start, NULL, 0);
247
        }
243
        phandle = qemu_opt_get_number(qemu_get_machine_opts(),
244
                                      "phandle_start", 0);
248 245
    }
249 246

  
250 247
    if (!phandle) {
b/vl.c
409 409
            .help = "Dump current dtb to a file and quit",
410 410
        }, {
411 411
            .name = "phandle_start",
412
            .type = QEMU_OPT_STRING,
412
            .type = QEMU_OPT_NUMBER,
413 413
            .help = "The first phandle ID we may generate dynamically",
414 414
        }, {
415 415
            .name = "dt_compatible",

Also available in: Unified diff