aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-20 11:33:22 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-20 11:33:22 +0200
commit9b06a7fe15a9cbde3f26b4f6f1deb5689a527067 (patch)
tree817759f98fc39f905f2aa3218f2954424380a67a
parentaa7209a1518017fd7bb094c8b68aead6536b092a (diff)
downloadembedlog-9b06a7fe15a9cbde3f26b4f6f1deb5689a527067.tar.gz
embedlog-9b06a7fe15a9cbde3f26b4f6f1deb5689a527067.tar.bz2
embedlog-9b06a7fe15a9cbde3f26b4f6f1deb5689a527067.zip
src/el-pmemory.c: call el_pmem() directly and not via proxy
This is readability patch, el_pmemory_table() was calling el_opmemory_table() which was calling el_pmem(). Such proxy is not needed and lower readability. Now el_pmemory_table() calls el_pmem() directly with no proxy. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--src/el-pmemory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/el-pmemory.c b/src/el-pmemory.c
index e86ec02..c221ae0 100644
--- a/src/el-pmemory.c
+++ b/src/el-pmemory.c
@@ -304,7 +304,7 @@ static int el_pmem
size_t mlen /* number of bytes to print */
)
{
- return el_opmemory_table(file, num, func, level, &g_el, mem, mlen);
+ return el_pmem(file, num, func, level, &g_el, mem, mlen, 1);
}
/* ==========================================================================
@@ -342,5 +342,5 @@ static int el_pmem
size_t mlen /* number of bytes to print */
)
{
- return el_opmemory(file, num, func, level, &g_el, mem, mlen);
+ return el_pmem(file, num, func, level, &g_el, mem, mlen, 0);
}