Revision d967b2f1 blockdev.c

b/blockdev.c
568 568
int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data)
569 569
{
570 570
    const char *device = qdict_get_str(qdict, "device");
571
    const char *filename = qdict_get_try_str(qdict, "snapshot_file");
571
    const char *filename = qdict_get_try_str(qdict, "snapshot-file");
572 572
    const char *format = qdict_get_try_str(qdict, "format");
573 573
    BlockDriverState *bs;
574 574
    BlockDriver *drv, *old_drv, *proto_drv;
......
577 577
    char old_filename[1024];
578 578

  
579 579
    if (!filename) {
580
        qerror_report(QERR_MISSING_PARAMETER, "snapshot_file");
580
        qerror_report(QERR_MISSING_PARAMETER, "snapshot-file");
581 581
        ret = -1;
582 582
        goto out;
583 583
    }

Also available in: Unified diff