]> sourceware.org Git - systemtap.git/commit
Fix deviceseeks.stp example to explicitly cast queue variable
authorWilliam Cohen <wcohen@redhat.com>
Thu, 17 Mar 2022 20:01:36 +0000 (16:01 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Fri, 18 Mar 2022 00:02:10 +0000 (20:02 -0400)
commit136fbcb747a1c2e7858f6810cab75cee654a5a9c
treea408199839861eda1097a7b0417dcb652df60e52
parentfcf2a77db3d3d15fde67e205b9501d0b2732dde2
Fix deviceseeks.stp example to explicitly cast queue variable

The deviceseeks.stp example was failing to build because several
uses of the queue variable were not explicitly casted and result
in the following error message:

semantic error: autocast variable '' may not be used as a structure: operator '->' at testsuite/systemtap.examples/io/deviceseeks.stp:26:8
        source:  queue->limits->logical_block_size :
                      ^
Used @q_cast(queue) in place of the plain queue to correctly
cast the variable and eliminate the error.
testsuite/systemtap.examples/io/deviceseeks.stp
This page took 0.025461 seconds and 5 git commands to generate.