[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 1/8] bootindex: add modify_boot_device_path f
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH v4 1/8] bootindex: add modify_boot_device_path function |
Date: |
Fri, 1 Aug 2014 10:36:18 -0300 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Thu, Jul 31, 2014 at 05:47:26PM +0800, address@hidden wrote:
[...]
> +void modify_boot_device_path(int32_t bootindex, DeviceState *dev,
> + const char *suffix)
> +{
> + FWBootEntry *i, *old_entry = NULL;
> +
> + assert(dev != NULL || suffix != NULL);
> +
> + if (bootindex >= 0) {
> + QTAILQ_FOREACH(i, &fw_boot_order, link) {
> + if (i->bootindex == bootindex) {
> + qerror_report(ERROR_CLASS_GENERIC_ERROR,
> + "The bootindex %d has already been used",
> + bootindex);
Isn't an Error** parameter preferable here, instead of using qerror_report()?
> + return;
> + }
> + }
> + }
[...]
--
Eduardo
- Re: [Qemu-devel] [PATCH v4 1/8] bootindex: add modify_boot_device_path function,
Eduardo Habkost <=