mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Scrobbler plugin remove logf size warnings
using chris_s' trick to caste to 64 bit int Change-Id: I28cac7e301d272351d44527531b46f1e211141fc
This commit is contained in:
parent
a3ef7b73b8
commit
789aa0a695
1 changed files with 6 additions and 3 deletions
|
|
@ -381,7 +381,8 @@ static bool track_is_unique(uint32_t hash1, uint32_t hash2)
|
||||||
/* Found in MRU */
|
/* Found in MRU */
|
||||||
if ((i.hash1 == hash1) && (i.hash2 == hash2))
|
if ((i.hash1 == hash1) && (i.hash2 == hash2))
|
||||||
{
|
{
|
||||||
logf("SCROBBLER: hash [%lx, %lx] found in MRU @ %d", i.hash1, i.hash2, mru);
|
logf("SCROBBLER: hash [%jx, %jx] found in MRU @ %d",
|
||||||
|
(intmax_t)i.hash1, (intmax_t)i.hash2, mru);
|
||||||
goto Found;
|
goto Found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -395,11 +396,13 @@ static bool track_is_unique(uint32_t hash1, uint32_t hash2)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logf("SCROBBLER: hash [%lx, %lx] evicted from MRU", i.hash1, i.hash2);
|
logf("SCROBBLER: hash [%jx, %jx] evicted from MRU",
|
||||||
|
(intmax_t) i.hash1, (intmax_t) i.hash2);
|
||||||
}
|
}
|
||||||
|
|
||||||
i = (struct hash64){.hash1 = hash1, .hash2 = hash2};
|
i = (struct hash64){.hash1 = hash1, .hash2 = hash2};
|
||||||
logf("SCROBBLER: hash [%lx, %lx] added to MRU[%d]", i.hash1, i.hash2, mru_len);
|
logf("SCROBBLER: hash [%jx, %jx] added to MRU[%d]",
|
||||||
|
(intmax_t)i.hash1, (intmax_t)i.hash2, mru_len);
|
||||||
|
|
||||||
Found:
|
Found:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue