mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Fix whitespace in migration code.
Replace tabs with spaces. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5527 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
88d2d9e098
commit
ff8d81d84a
2 changed files with 45 additions and 45 deletions
50
migration.c
50
migration.c
|
@ -36,17 +36,17 @@ void do_migrate(int detach, const char *uri)
|
|||
const char *p;
|
||||
|
||||
if (strstart(uri, "tcp:", &p))
|
||||
s = tcp_start_outgoing_migration(p, max_throttle, detach);
|
||||
s = tcp_start_outgoing_migration(p, max_throttle, detach);
|
||||
else
|
||||
term_printf("unknown migration protocol: %s\n", uri);
|
||||
|
||||
if (s == NULL)
|
||||
term_printf("migration failed\n");
|
||||
term_printf("migration failed\n");
|
||||
else {
|
||||
if (current_migration)
|
||||
current_migration->release(current_migration);
|
||||
if (current_migration)
|
||||
current_migration->release(current_migration);
|
||||
|
||||
current_migration = s;
|
||||
current_migration = s;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ void do_migrate_cancel(void)
|
|||
MigrationState *s = current_migration;
|
||||
|
||||
if (s)
|
||||
s->cancel(s);
|
||||
s->cancel(s);
|
||||
}
|
||||
|
||||
void do_migrate_set_speed(const char *value)
|
||||
|
@ -66,13 +66,13 @@ void do_migrate_set_speed(const char *value)
|
|||
d = strtod(value, &ptr);
|
||||
switch (*ptr) {
|
||||
case 'G': case 'g':
|
||||
d *= 1024;
|
||||
d *= 1024;
|
||||
case 'M': case 'm':
|
||||
d *= 1024;
|
||||
d *= 1024;
|
||||
case 'K': case 'k':
|
||||
d *= 1024;
|
||||
d *= 1024;
|
||||
default:
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
max_throttle = (uint32_t)d;
|
||||
|
@ -83,21 +83,21 @@ void do_info_migrate(void)
|
|||
MigrationState *s = current_migration;
|
||||
|
||||
if (s) {
|
||||
term_printf("Migration status: ");
|
||||
switch (s->get_status(s)) {
|
||||
case MIG_STATE_ACTIVE:
|
||||
term_printf("active\n");
|
||||
break;
|
||||
case MIG_STATE_COMPLETED:
|
||||
term_printf("completed\n");
|
||||
break;
|
||||
case MIG_STATE_ERROR:
|
||||
term_printf("failed\n");
|
||||
break;
|
||||
case MIG_STATE_CANCELLED:
|
||||
term_printf("cancelled\n");
|
||||
break;
|
||||
}
|
||||
term_printf("Migration status: ");
|
||||
switch (s->get_status(s)) {
|
||||
case MIG_STATE_ACTIVE:
|
||||
term_printf("active\n");
|
||||
break;
|
||||
case MIG_STATE_COMPLETED:
|
||||
term_printf("completed\n");
|
||||
break;
|
||||
case MIG_STATE_ERROR:
|
||||
term_printf("failed\n");
|
||||
break;
|
||||
case MIG_STATE_CANCELLED:
|
||||
term_printf("cancelled\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue