tools/nxstyle: clean up the no and unknown file extension info

Clean up the no and unknown file extension info since only .h and .c
files supported. Just ignore them quietly.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-03-10 21:06:49 +08:00 committed by patacongo
parent 6697603162
commit aa4052936c

View File

@ -598,7 +598,6 @@ int main(int argc, char **argv, char **envp)
if (ext == 0) if (ext == 0)
{ {
INFOFL("No file extension", g_file_name);
} }
else if (strcmp(ext, ".h") == 0) else if (strcmp(ext, ".h") == 0)
{ {
@ -611,7 +610,6 @@ int main(int argc, char **argv, char **envp)
if (g_file_type == UNKNOWN) if (g_file_type == UNKNOWN)
{ {
INFOFL("Unknown file extension", g_file_name);
return 0; return 0;
} }