OSDN Git Service

migration: reduce the count of strlen call
authorLiang Li <liang.z.li@intel.com>
Mon, 13 Jul 2015 09:34:10 +0000 (17:34 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 15 Jul 2015 10:21:28 +0000 (12:21 +0200)
commit9f5f380b54d6ad80cf35d93c8cd71c8d7a1b52b7
tree83f006700918d86365571f29873403fa3f9c04a0
parent48212d87d6655b029231d830a77983c21552fe49
migration: reduce the count of strlen call

'strlen' is called three times in 'save_page_header', it's
inefficient.

Signed-off-by: Liang Li <liang.z.li@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c