On Wed, Oct 16, 2019 at 08:43:32AM -0700, Richard Henderson wrote:
>On 10/15/19 6:24 PM, Wei Yang wrote:
>>              if ($line =~ /\bbzero\(/) {
>>                      ERROR("use memset() instead of bzero()\n" . $herecurr);
>>              }
>> +            if ($line =~ /getpagesize\(\)/) {
>> +                    ERROR("use qemu_real_host_page_size instead of 
>> getpagesize()\n" . $herecurr);
>> +            }
>> +            if ($line =~ /sysconf\(_SC_PAGESIZE\)/) {
>
>Use \b to match beginning of symbol like bzero did?
>

You are right, thanks for the suggestion.

>
>r~

-- 
Wei Yang
Help you, Help me

Reply via email to