diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-15 23:55:39 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-13 10:32:54 +0000 |
commit | 1e9ad3ca0d9bf3e917eb2beb460421155144760a (patch) | |
tree | 752590b42f338f03223e024fc5b642ac9a8a5598 /apps/tagcache.c | |
parent | 3301c5aa6db76832dbb9af8f72d29b348190fd91 (diff) | |
download | rockbox-1e9ad3ca0d9bf3e917eb2beb460421155144760a.tar.gz rockbox-1e9ad3ca0d9bf3e917eb2beb460421155144760a.zip |
Remove buflib allocation names, part two
Remove allocation names from the buflib API and fix up all callers.
Change-Id: I3df922e258d5f0d711d70e72b56b4ed634fb0f5a
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index c853c9d5e8..69a6eaade5 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -410,7 +410,7 @@ static void allocate_tempbuf(void) | |||
410 | #else /* !__PCTOOL__ */ | 410 | #else /* !__PCTOOL__ */ |
411 | /* Need to pass dummy ops to prevent the buffer being moved | 411 | /* Need to pass dummy ops to prevent the buffer being moved |
412 | * out from under us, since we yield during the tagcache commit. */ | 412 | * out from under us, since we yield during the tagcache commit. */ |
413 | tempbuf_handle = core_alloc_maximum("tc tempbuf", &size, &buflib_ops_locked); | 413 | tempbuf_handle = core_alloc_maximum(&size, &buflib_ops_locked); |
414 | if (tempbuf_handle > 0) | 414 | if (tempbuf_handle > 0) |
415 | { | 415 | { |
416 | tempbuf = core_get_data(tempbuf_handle); | 416 | tempbuf = core_get_data(tempbuf_handle); |
@@ -4115,7 +4115,7 @@ static bool allocate_tagcache(void) | |||
4115 | alloc_size += tcmh.tch.entry_count*sizeof(struct dircache_fileref); | 4115 | alloc_size += tcmh.tch.entry_count*sizeof(struct dircache_fileref); |
4116 | #endif | 4116 | #endif |
4117 | 4117 | ||
4118 | int handle = core_alloc_ex("tc ramcache", alloc_size, &ops); | 4118 | int handle = core_alloc_ex(alloc_size, &ops); |
4119 | if (handle <= 0) | 4119 | if (handle <= 0) |
4120 | return false; | 4120 | return false; |
4121 | 4121 | ||
@@ -4158,7 +4158,7 @@ static bool tagcache_dumpload(void) | |||
4158 | } | 4158 | } |
4159 | 4159 | ||
4160 | /* Lets allocate real memory and load it */ | 4160 | /* Lets allocate real memory and load it */ |
4161 | handle = core_alloc_ex("tc ramcache", shdr.tc_stat.ramcache_allocated, &ops); | 4161 | handle = core_alloc_ex(shdr.tc_stat.ramcache_allocated, &ops); |
4162 | if (handle <= 0) | 4162 | if (handle <= 0) |
4163 | { | 4163 | { |
4164 | logf("alloc failure"); | 4164 | logf("alloc failure"); |