Revision c1b71b0c device_tree.c

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) {

Also available in: Unified diff