aboutsummaryrefslogtreecommitdiffstats
path: root/trace-record.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-record.c')
-rw-r--r--trace-record.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/trace-record.c b/trace-record.c
index a4642bf..740b744 100644
--- a/trace-record.c
+++ b/trace-record.c
@@ -1809,6 +1809,8 @@ static void record_all_events(void)
1809 listed_events = list; 1809 listed_events = list;
1810} 1810}
1811 1811
1812#define OPT_date 255
1813
1812void trace_record (int argc, char **argv) 1814void trace_record (int argc, char **argv)
1813{ 1815{
1814 const char *plugin = NULL; 1816 const char *plugin = NULL;
@@ -1862,7 +1864,7 @@ void trace_record (int argc, char **argv)
1862 for (;;) { 1864 for (;;) {
1863 int option_index = 0; 1865 int option_index = 0;
1864 static struct option long_options[] = { 1866 static struct option long_options[] = {
1865 {"date", no_argument, NULL, 0}, 1867 {"date", no_argument, NULL, OPT_date},
1866 {"help", no_argument, NULL, '?'}, 1868 {"help", no_argument, NULL, '?'},
1867 {NULL, 0, NULL, 0} 1869 {NULL, 0, NULL, 0}
1868 }; 1870 };
@@ -2005,14 +2007,8 @@ void trace_record (int argc, char **argv)
2005 case 'i': 2007 case 'i':
2006 ignore_event_not_found = 1; 2008 ignore_event_not_found = 1;
2007 break; 2009 break;
2008 case 0: 2010 case OPT_date:
2009 switch (option_index) { 2011 date = 1;
2010 case 0: /* date */
2011 date = 1;
2012 break;
2013 default:
2014 usage(argv);
2015 }
2016 break; 2012 break;
2017 default: 2013 default:
2018 usage(argv); 2014 usage(argv);