libsysprof-capture: Use SYSPROF_N_ELEMENTS macro instead of G_N_ELEMENTS

It does the same thing.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-02 10:13:26 +01:00
parent b509daaa42
commit 0785f32ce5
5 changed files with 15 additions and 13 deletions

View File

@ -953,7 +953,7 @@ sysprof_capture_reader_read_counter_set (SysprofCaptureReader *self)
{
unsigned int j;
for (j = 0; j < G_N_ELEMENTS (set->values[0].values); j++)
for (j = 0; j < SYSPROF_N_ELEMENTS (set->values[0].values); j++)
{
set->values[i].ids[j] = GUINT32_SWAP_LE_BE (set->values[i].ids[j]);
set->values[i].values[j].v64 = GUINT64_SWAP_LE_BE (set->values[i].values[j].v64);