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

mtp-responder: Break loop when usb hang up and add debug info #15

Conversation

JianyuWang0623
Copy link
Member

Summary

Break loop when usb hang up and add debug info

Impact

mtp-responder

Testing

CI

JianyuWang0623 and others added 4 commits January 7, 2025 10:53
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
Output:
  mtp-responder/src/mtp_inoti_handler.c: In function '__process_inoti_event':
  mtp-responder/src/mtp_inoti_handler.c:195:28: warning: format '%d' expects argument of type 'int', but argument 5 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
    195 |                 ERR_SECURE("Event len is invalid[%d], event->name[%s]\n", event->len,
        |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~
        |                                                                                |
        |                                                                                uint32_t {aka long unsigned int}
  /n62s.rel3.5.0314/apps/frameworks/utils/include/log/log_system.h:129:34: note: in definition of macro 'SLOGE'
    129 |                                  __VA_ARGS__))
        |                                  ^~~~~~~~~~~
  mtp-responder/src/mtp_inoti_handler.c:195:17: note: in expansion of macro 'ERR_SECURE'
    195 |                 ERR_SECURE("Event len is invalid[%d], event->name[%s]\n", event->len,
        |                 ^~~~~~~~~~
  mtp-responder/src/mtp_inoti_handler.c:195:51: note: format string is defined here
    195 |                 ERR_SECURE("Event len is invalid[%d], event->name[%s]\n", event->len,
        |                                                  ~^
        |                                                   |
        |                                                   int
        |                                                  %ld

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
… exit

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit cdfb09f into open-vela:dev Jan 7, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants