caget -0x output on 64-bit

Bug #1699332 reported by Andrew Johnson on 2017-06-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Status tracked in 7.0
3.14
Undecided
Unassigned
3.15
Undecided
Unassigned
3.16
Undecided
Unassigned
7.0
Low
Andrew Johnson

Bug Description

The output from 'caget -0x <pv>' is printed as a 64-bit quantity when run on a 64-bit system, even though the underlying DBF_LONG type is only 32-bits wide. This is only visible when the pv is negative:

tux% caget -0x anj:exit.DISV
anj:exit.DISV 0xFFFFFFFFFFFFFFFF

A similar problem occurs with the '-0o' option, and camonitor is also similarly affected.

I'm committing a fix to tool_lib.c on the 3.14 branch.

Andrew Johnson (anj) on 2017-06-20
Changed in epics-base:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers