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

reduce textual 'noise' in the EOS event debug log entries #1022

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

axxel
Copy link
Contributor

@axxel axxel commented Sep 19, 2024

This makes the event entries in the log from an EOS more readable by removing uninteresting information and layout out interesting information in a more aligned/table based manner for quick visual parsing of the data.

Example excerpt:

event 104: EOS prop d1c9 value changed, size  4 (EOS_ContinousAFMode)
           value of d1c9 is 0x00000000 (u32)
event 105: EOS prop d19f value changed, size  4 (EOS_GPSDeviceActive)
           EOS prop d19f is unknown
           value of d19f is 0x00000001 (u32)
[...]
event 111: EOS prop d177 value changed, size 24 (EOS_SmartphoneShowImageConfig)
    0x000: 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x010: 00 00 00 00 00 00 00 00
event 112: EOS prop d105 options changed, type 1, count  0 (EOS_AutoExposureMode)
event 113: EOS prop d108 options changed, type 3, count  3 (EOS_FocusMode)
           option[ 0] of d108 is 0x00
           option[ 1] of d108 is 0x02
           option[ 2] of d108 is 0x01

This makes the event entries in the log from an EOS more readable by
removing uninteresting information and layout out interesting information
in a more aligned/table based manner for quick visual parsing of the data.

Example excerpt:
```
event 104: EOS prop d1c9 value changed, size  4 (EOS_ContinousAFMode)
           value of d1c9 is 0x00000000 (u32)
event 105: EOS prop d19f value changed, size  4 (EOS_GPSDeviceActive)
           EOS prop d19f is unknown
           value of d19f is 0x00000001 (u32)
[...]
event 111: EOS prop d177 value changed, size 24 (EOS_SmartphoneShowImageConfig)
    0x000: 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x010: 00 00 00 00 00 00 00 00
event 112: EOS prop d105 options changed, type 1, count  0 (EOS_AutoExposureMode)
event 113: EOS prop d108 options changed, type 3, count  3 (EOS_FocusMode)
           option[ 0] of d108 is 0x00
           option[ 1] of d108 is 0x02
           option[ 2] of d108 is 0x01
```
camlibs/ptp2/ptp-pack.c Show resolved Hide resolved
camlibs/ptp2/ptp-pack.c Show resolved Hide resolved
@msmeissn msmeissn merged commit 1759368 into gphoto:master Sep 19, 2024
4 of 5 checks passed
@axxel axxel deleted the cleanup-eos-event-logging branch September 19, 2024 13:29
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.

2 participants