Repository navigation
Commit e0ede61
committed
halcmd, plasmac: print 64-bit sint values arch-neutrally
The thread time/tmax and plasmac low_cut_volts prints used %ld with
hal_get_sint() values (int64_t), which only matches on LP64. Use
fmt::format for the halcmd thread print (fmt is already used in this
file and formats int64_t natively) and a (long long) cast with %lld
for the plasmac realtime component, where rtapi_print_msg is the
only output channel.1 parent eb7b036 commit e0ede61
2 files changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
| 805 | + | |
806 | 806 | | |
807 | | - | |
| 807 | + | |
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
1772 | 1781 | | |
1773 | 1782 | | |
1774 | 1783 | | |
| |||
0 commit comments