watchdog.c (f60a0d6ab9ea9ba900ba3936c3471851f28f7bc4) | watchdog.c (87ea75d5e135c0527c6a9dbac4317913409f28c7) |
---|---|
1/* 2 * Virtual hardware watchdog. 3 * 4 * Copyright (C) 2009 Red Hat Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 --- 52 unchanged lines hidden (view full) --- 61 model->wdt_name, model->wdt_description); 62 } 63 return 2; 64 } 65 66 QLIST_FOREACH(model, &watchdog_list, entry) { 67 if (strcasecmp(model->wdt_name, p) == 0) { 68 /* add the device */ | 1/* 2 * Virtual hardware watchdog. 3 * 4 * Copyright (C) 2009 Red Hat Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 --- 52 unchanged lines hidden (view full) --- 61 model->wdt_name, model->wdt_description); 62 } 63 return 2; 64 } 65 66 QLIST_FOREACH(model, &watchdog_list, entry) { 67 if (strcasecmp(model->wdt_name, p) == 0) { 68 /* add the device */ |
69 opts = qemu_opts_create_nofail(qemu_find_opts("device")); | 69 opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0, 70 &error_abort); |
70 qemu_opt_set(opts, "driver", p); 71 return 0; 72 } 73 } 74 75 fprintf(stderr, "Unknown -watchdog device. Supported devices are:\n"); 76 QLIST_FOREACH(model, &watchdog_list, entry) { 77 fprintf(stderr, "\t%s\t%s\n", --- 69 unchanged lines hidden --- | 71 qemu_opt_set(opts, "driver", p); 72 return 0; 73 } 74 } 75 76 fprintf(stderr, "Unknown -watchdog device. Supported devices are:\n"); 77 QLIST_FOREACH(model, &watchdog_list, entry) { 78 fprintf(stderr, "\t%s\t%s\n", --- 69 unchanged lines hidden --- |