« Previous | Next » 

Revision 8707ecca

ID8707eccac83bda82d802c0cfa04fc0ff6bcdce27

Added by aliguori almost 12 years ago

pci_add storage: fix error handling for 'if' parameter (Eduardo Habkost)

This fixes:

- The error message to show the actual if= argument value. It was showing
the filename instead, because 'buf' is reaused on the filename parsing.
- A bug that makes a block device to be created even when an unsupported if= arg
is passed to pci_add.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6981 c046a42c-6fe2-441c-8c8c-71466251a162

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences