@@ -17,7 +17,7 @@ static char args_doc[] = "INPUT";
1717enum {
1818 ARG_bundle = 0x80 ,
1919 ARG_meter = 0x81 ,
20- ARG_noprefix = 0x82 ,
20+ ARG_prefix = 0x82 ,
2121 ARG_precise = 0x83 ,
2222};
2323
@@ -27,7 +27,7 @@ static struct argp_option options[] = {
2727 { "bundle" , ARG_bundle , "SIZE" , 0 , "set the bundle size" },
2828 { "meter" , ARG_meter , "TYPE" , 0 , "set the metering type (branch,fp,timer)" },
2929 { "precise" , ARG_precise , 0 , 0 , "enable precise metering" },
30- { "no- prefix-pad" , ARG_noprefix , 0 , 0 , "disable prefix padding" },
30+ { "prefix-pad" , ARG_prefix , 0 , 0 , "enable prefix padding" },
3131 { 0 },
3232};
3333
@@ -63,8 +63,8 @@ parse_opt(int key, char* arg, struct argp_state* state)
6363 case ARG_precise :
6464 args -> precise = true;
6565 break ;
66- case ARG_noprefix :
67- args -> noprefix = true;
66+ case ARG_prefix :
67+ args -> prefix = true;
6868 break ;
6969 case ARGP_KEY_ARG :
7070 args -> input = arg ;
@@ -104,6 +104,10 @@ main(int argc, char** argv)
104104 args .input = "" ;
105105 argp_parse (& argp , argc , argv , ARGP_NO_HELP , 0 , & args );
106106
107+ const char * prefix = getenv ("LFI_PREFIX_PAD" );
108+ if (prefix && strcmp (prefix , "1" ) == 0 )
109+ args .prefix = true;
110+
107111 if (strcmp (args .input , "" ) == 0 ) {
108112 fprintf (stderr , "error: no input file\n" );
109113 return 1 ;
0 commit comments