[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC Patch v2 14/45] adjust the indentation
Signed-off-by: Wen Congyang <wency@xxxxxxxxxxxxxx> --- tools/libxl/libxl_checkpoint_device.c | 31 ++++++++++++++++++------------- tools/libxl/libxl_internal.h | 18 ++++++++++-------- tools/libxl/libxl_remus.c | 12 ++++++++---- 3 files changed, 36 insertions(+), 25 deletions(-) diff --git a/tools/libxl/libxl_checkpoint_device.c b/tools/libxl/libxl_checkpoint_device.c index 0036858..a57b9e4 100644 --- a/tools/libxl/libxl_checkpoint_device.c +++ b/tools/libxl/libxl_checkpoint_device.c @@ -66,9 +66,9 @@ static void devices_teardown_cb(libxl__egc *egc, /* checkpoint device setup and teardown */ static libxl__checkpoint_device* checkpoint_device_init(libxl__egc *egc, - libxl__checkpoint_devices_state *cds, - libxl__checkpoint_device_kind kind, - void *libxl_dev) + libxl__checkpoint_devices_state *cds, + libxl__checkpoint_device_kind kind, + void *libxl_dev) { libxl__checkpoint_device *dev = NULL; @@ -83,9 +83,10 @@ static libxl__checkpoint_device* checkpoint_device_init(libxl__egc *egc, } static void checkpoint_devices_setup(libxl__egc *egc, - libxl__checkpoint_devices_state *cds); + libxl__checkpoint_devices_state *cds); -void libxl__checkpoint_devices_setup(libxl__egc *egc, libxl__checkpoint_devices_state *cds) +void libxl__checkpoint_devices_setup(libxl__egc *egc, + libxl__checkpoint_devices_state *cds) { int i, rc; @@ -131,7 +132,7 @@ out: } static void checkpoint_devices_setup(libxl__egc *egc, - libxl__checkpoint_devices_state *cds) + libxl__checkpoint_devices_state *cds) { int i, rc; libxl__checkpoint_device *dev; @@ -180,14 +181,18 @@ static void devices_setup_cb(libxl__egc *egc, for (i = 0; i < cds->num_devices; i++) { dev = cds->dev[i]; - if (!dev->aodev.rc || dev->aodev.rc == ERROR_CHECKPOINT_DEVOPS_DOES_NOT_MATCH) + if (!dev->aodev.rc || + dev->aodev.rc == ERROR_CHECKPOINT_DEVOPS_DOES_NOT_MATCH) continue; rc = dev->aodev.rc; goto out; } - /* if the error is still ERROR_CHECKPOINT_DEVOPS_DOES_NOT_MATCH, begin next iter */ + /* + * if the error is still ERROR_CHECKPOINT_DEVOPS_DOES_NOT_MATCH, + * begin next iter + */ if (rc == ERROR_CHECKPOINT_DEVOPS_DOES_NOT_MATCH) { checkpoint_devices_setup(egc, cds); return; @@ -198,7 +203,7 @@ out: } void libxl__checkpoint_devices_teardown(libxl__egc *egc, - libxl__checkpoint_devices_state *cds) + libxl__checkpoint_devices_state *cds) { int i; libxl__checkpoint_device *dev; @@ -260,12 +265,12 @@ static void devices_checkpoint_cb(libxl__egc *egc, /* API implementations */ -#define define_checkpoint_api(api) \ -void libxl__checkpoint_devices_##api(libxl__egc *egc, \ - libxl__checkpoint_devices_state *cds) \ +#define define_checkpoint_api(api) \ +void libxl__checkpoint_devices_##api(libxl__egc *egc, \ + libxl__checkpoint_devices_state *cds) \ { \ int i; \ - libxl__checkpoint_device *dev; \ + libxl__checkpoint_device *dev; \ \ STATE_AO_GC(cds->ao); \ \ diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index b3b726c..766868c 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -2541,7 +2541,8 @@ typedef struct libxl__save_helper_state { * Each device type needs to implement the interfaces specified in * the libxl__checkpoint_device_subkind_ops if it wishes to support Remus. * - * The high-level control flow through the checkpoint device layer is shown below: + * The high-level control flow through the checkpoint device layer is shown + * below: * * xl remus * |-> libxl_domain_remus_start @@ -2610,7 +2611,8 @@ struct libxl__checkpoint_device_subkind_ops { }; typedef void libxl__checkpoint_callback(libxl__egc *, - libxl__checkpoint_devices_state *, int rc); + libxl__checkpoint_devices_state *, + int rc); /* * State associated with a checkpoint invocation, including parameters @@ -2618,7 +2620,7 @@ typedef void libxl__checkpoint_callback(libxl__egc *, * save/restore machinery. */ struct libxl__checkpoint_devices_state { - /*---- must be set by caller of libxl__checkpoint_device_(setup|teardown) ----*/ + /*-- must be set by caller of libxl__checkpoint_device_(setup|teardown) --*/ libxl__ao *ao; libxl__egc *egc; @@ -2693,15 +2695,15 @@ struct libxl__checkpoint_device { /* the following 5 APIs are async ops, call cds->callback when done */ _hidden void libxl__checkpoint_devices_setup(libxl__egc *egc, - libxl__checkpoint_devices_state *cds); + libxl__checkpoint_devices_state *cds); _hidden void libxl__checkpoint_devices_teardown(libxl__egc *egc, - libxl__checkpoint_devices_state *cds); + libxl__checkpoint_devices_state *cds); _hidden void libxl__checkpoint_devices_postsuspend(libxl__egc *egc, - libxl__checkpoint_devices_state *cds); + libxl__checkpoint_devices_state *cds); _hidden void libxl__checkpoint_devices_preresume(libxl__egc *egc, - libxl__checkpoint_devices_state *cds); + libxl__checkpoint_devices_state *cds); _hidden void libxl__checkpoint_devices_commit(libxl__egc *egc, - libxl__checkpoint_devices_state *cds); + libxl__checkpoint_devices_state *cds); _hidden int libxl__netbuffer_enabled(libxl__gc *gc); /*----- Domain suspend (save) state structure -----*/ diff --git a/tools/libxl/libxl_remus.c b/tools/libxl/libxl_remus.c index a04c05e..ca205a7 100644 --- a/tools/libxl/libxl_remus.c +++ b/tools/libxl/libxl_remus.c @@ -21,9 +21,11 @@ /*----- remus: setup the environment -----*/ static void libxl__remus_setup_done(libxl__egc *egc, - libxl__checkpoint_devices_state *cds, int rc); + libxl__checkpoint_devices_state *cds, + int rc); static void libxl__remus_setup_failed(libxl__egc *egc, - libxl__checkpoint_devices_state *cds, int rc); + libxl__checkpoint_devices_state *cds, + int rc); void libxl__remus_setup(libxl__egc *egc, libxl__domain_suspend_state *dss) @@ -58,7 +60,8 @@ out: } static void libxl__remus_setup_done(libxl__egc *egc, - libxl__checkpoint_devices_state *cds, int rc) + libxl__checkpoint_devices_state *cds, + int rc) { libxl__domain_suspend_state *dss = CONTAINER_OF(cds, *dss, cds); STATE_AO_GC(dss->ao); @@ -220,7 +223,8 @@ out: /*----- remus: wait a new checkpoint -----*/ static void remus_checkpoint_dm_saved(libxl__egc *egc, - libxl__domain_suspend_state *dss, int rc); + libxl__domain_suspend_state *dss, + int rc); static void remus_devices_commit_cb(libxl__egc *egc, libxl__checkpoint_devices_state *cds, int rc); -- 1.9.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |