In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/bin/lttng-trace-gpio line 10:
      case $opt in
      ^-- SC2220 (warning): Invalid flags are not handled. Add a *) case.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/bin/lttng-trace-gpio line 20:
lttng add-context $SESSION $CHANNEL -k --type pid --type tid
                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                           ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
lttng add-context "$SESSION" "$CHANNEL" -k --type pid --type tid


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/bin/lttng-trace-gpio line 21:
lttng enable-event $SESSION $CHANNEL -k --tracepoint gpio_direction  
                   ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                            ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
lttng enable-event "$SESSION" "$CHANNEL" -k --tracepoint gpio_direction  


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/bin/lttng-trace-gpio line 22:
lttng enable-event $SESSION $CHANNEL -k --tracepoint gpio_value
                   ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                            ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
lttng enable-event "$SESSION" "$CHANNEL" -k --tracepoint gpio_value

For more information:
  https://www.shellcheck.net/wiki/SC2220 -- Invalid flags are not handled. Ad...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...