Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong behaviour when filename with underline #1

Open
hc7 opened this issue Dec 15, 2023 · 0 comments
Open

Wrong behaviour when filename with underline #1

hc7 opened this issue Dec 15, 2023 · 0 comments

Comments

@hc7
Copy link

hc7 commented Dec 15, 2023

Firstly mistake was:

  File "/home/hcs-i/arcadia/taxi/dh/mcu/projects/yabeacon/utils/logger-tool/logger-generate-tokens.py", line 89, in parse_module
    parser_error(filename, line_num, "Expected module '%s' but got '%s'" % (expected_name, module['name'], filename))
TypeError: not all arguments converted during string formatting

After fix I can see:

Error: In 'src/uart_ndma.c' line 53
       Expected module 'uart_ndma' but got 'uart-ndma' src/uart_ndma.c

File name is uart_ndma.c
I have been trying

// clang-format off
LOG_MODULE_DEFINE(uart_ndma); /* module name should same as file name */
// clang-format on

and
// clang-format off
LOG_MODULE_DEFINE(uart-ndma); /* module name should same as file name */
// clang-format on

It is not work. All time same mistake.
It becames ok only when file name is uart-ndma.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant