static void
_e_info_client_proc_buffer_shot(int argc, char **argv)
{
- int dumprun = atoi(argv[2]);
+ if (argc == 3)
+ {
+ int dumprun = atoi(argv[2]);
+
+ if (dumprun < 0 || dumprun > 1)
+ {
+ printf("Error Check Args : enlightenment_info -dump_buffers [1: start, 0: stop]\n");
+ return;
+ }
- if (!_e_info_client_eldbus_message_with_args("dump_buffers", NULL, "i", dumprun))
+ if (!_e_info_client_eldbus_message_with_args("dump_buffers", NULL, "i", dumprun))
+ {
+ printf("_e_info_client_proc_buffer_shot fail (%d)\n", dumprun);
+ return;
+ }
+ printf("_e_info_client_proc_buffer_shot %s\n", (dumprun == 1 ? "start" : "stop"));
+ }
+ else
{
- printf("_e_info_client_proc_buffer_shot fail (%d)\n", dumprun);
- return;
+ printf("Error Check Args : enlightenment_info -dump_buffers [1: start, 0: stop]\n");
}
- printf("_e_info_client_proc_buffer_shot %s\n", (dumprun == 1 ? "start" : "stop"));
}
#ifdef HAVE_HWC