Skip to content

Commit e51bd0d

Browse files
Fix minor C++ warnings in host "make test" run (#5747)
1 parent 7369133 commit e51bd0d

File tree

4 files changed

+107
-107
lines changed

4 files changed

+107
-107
lines changed

cores/esp8266/spiffs/spiffs_cache.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ static spiffs_cache_page *spiffs_cache_page_get(spiffs *fs, spiffs_page_ix pix)
2222
if ((cache->cpage_use_map & (1<<i)) &&
2323
(cp->flags & SPIFFS_CACHE_FLAG_TYPE_WR) == 0 &&
2424
cp->pix == pix ) {
25-
//SPIFFS_CACHE_DBG("CACHE_GET: have cache page "_SPIPRIi" for "_SPIPRIpg"\n", i, pix);
25+
//SPIFFS_CACHE_DBG("CACHE_GET: have cache page " _SPIPRIi " for " _SPIPRIpg"\n", i, pix);
2626
cp->last_access = cache->last_access;
2727
return cp;
2828
}
2929
}
30-
//SPIFFS_CACHE_DBG("CACHE_GET: no cache for "_SPIPRIpg"\n", pix);
30+
//SPIFFS_CACHE_DBG("CACHE_GET: no cache for " _SPIPRIpg"\n", pix);
3131
return 0;
3232
}
3333

@@ -41,17 +41,17 @@ static s32_t spiffs_cache_page_free(spiffs *fs, int ix, u8_t write_back) {
4141
(cp->flags & SPIFFS_CACHE_FLAG_TYPE_WR) == 0 &&
4242
(cp->flags & SPIFFS_CACHE_FLAG_DIRTY)) {
4343
u8_t *mem = spiffs_get_cache_page(fs, cache, ix);
44-
SPIFFS_CACHE_DBG("CACHE_FREE: write cache page "_SPIPRIi" pix "_SPIPRIpg"\n", ix, cp->pix);
44+
SPIFFS_CACHE_DBG("CACHE_FREE: write cache page " _SPIPRIi " pix " _SPIPRIpg "\n", ix, cp->pix);
4545
res = SPIFFS_HAL_WRITE(fs, SPIFFS_PAGE_TO_PADDR(fs, cp->pix), SPIFFS_CFG_LOG_PAGE_SZ(fs), mem);
4646
}
4747

4848
#if SPIFFS_CACHE_WR
4949
if (cp->flags & SPIFFS_CACHE_FLAG_TYPE_WR) {
50-
SPIFFS_CACHE_DBG("CACHE_FREE: free cache page "_SPIPRIi" objid "_SPIPRIid"\n", ix, cp->obj_id);
50+
SPIFFS_CACHE_DBG("CACHE_FREE: free cache page " _SPIPRIi " objid " _SPIPRIid "\n", ix, cp->obj_id);
5151
} else
5252
#endif
5353
{
54-
SPIFFS_CACHE_DBG("CACHE_FREE: free cache page "_SPIPRIi" pix "_SPIPRIpg"\n", ix, cp->pix);
54+
SPIFFS_CACHE_DBG("CACHE_FREE: free cache page " _SPIPRIi " pix " _SPIPRIpg "\n", ix, cp->pix);
5555
}
5656
cache->cpage_use_map &= ~(1 << ix);
5757
cp->flags = 0;
@@ -103,7 +103,7 @@ static spiffs_cache_page *spiffs_cache_page_allocate(spiffs *fs) {
103103
spiffs_cache_page *cp = spiffs_get_cache_page_hdr(fs, cache, i);
104104
cache->cpage_use_map |= (1<<i);
105105
cp->last_access = cache->last_access;
106-
//SPIFFS_CACHE_DBG("CACHE_ALLO: allocated cache page "_SPIPRIi"\n", i);
106+
//SPIFFS_CACHE_DBG("CACHE_ALLO: allocated cache page " _SPIPRIi"\n", i);
107107
return cp;
108108
}
109109
}
@@ -158,7 +158,7 @@ s32_t spiffs_phys_rd(
158158
if (cp) {
159159
cp->flags = SPIFFS_CACHE_FLAG_WRTHRU;
160160
cp->pix = SPIFFS_PADDR_TO_PAGE(fs, addr);
161-
SPIFFS_CACHE_DBG("CACHE_ALLO: allocated cache page "_SPIPRIi" for pix "_SPIPRIpg "\n", cp->ix, cp->pix);
161+
SPIFFS_CACHE_DBG("CACHE_ALLO: allocated cache page " _SPIPRIi " for pix " _SPIPRIpg "\n", cp->ix, cp->pix);
162162

163163
s32_t res2 = SPIFFS_HAL_READ(fs,
164164
addr - SPIFFS_PADDR_TO_PAGE_OFFSET(fs, addr),
@@ -262,7 +262,7 @@ spiffs_cache_page *spiffs_cache_page_allocate_by_fd(spiffs *fs, spiffs_fd *fd) {
262262
cp->flags = SPIFFS_CACHE_FLAG_TYPE_WR;
263263
cp->obj_id = fd->obj_id;
264264
fd->cache_page = cp;
265-
SPIFFS_CACHE_DBG("CACHE_ALLO: allocated cache page "_SPIPRIi" for fd "_SPIPRIfd ":"_SPIPRIid "\n", cp->ix, fd->file_nbr, fd->obj_id);
265+
SPIFFS_CACHE_DBG("CACHE_ALLO: allocated cache page " _SPIPRIi " for fd " _SPIPRIfd ":" _SPIPRIid "\n", cp->ix, fd->file_nbr, fd->obj_id);
266266
return cp;
267267
}
268268

0 commit comments

Comments
 (0)