vmstate static checker: detect section renames
commit79fe16c0489ca658f53796206067a551fc915ba2
authorAmit Shah <amit.shah@redhat.com>
Fri, 11 Jul 2014 12:40:45 +0000 (11 18:10 +0530)
committerAmit Shah <amit.shah@redhat.com>
Wed, 16 Jul 2014 08:59:34 +0000 (16 14:29 +0530)
tree31c17694512992802c906b490ad5ebf745848112
parent5a7348045091a2bc15d85bb177e5956aa6114e5a
vmstate static checker: detect section renames

Commit 292b1634 changed the section name of "ICH9 LPC" to "ICH9-LPC",
and that causes the static checker to flag this:

Section "ICH9 LPC" does not exist in dest

This patch introduces a function that checks for section renames and
also a dictionary that maps those renames.

Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
This is a small patch to a script; doesn't break qemu and helps with the
static checker, so it's a very low-risk patch for 2.1.
scripts/vmstate-static-checker.py