aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/format.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-09-11 22:13:46 +0200
committerDamjan Marion <damarion@cisco.com>2020-09-14 14:04:06 +0200
commitb509504e6b6eb8590d2d7dad2447c1bd933ce94c (patch)
treef8f307985be5ea96d4bd908638903919358eb370 /src/vppinfra/format.h
parent999395cd6644a297c01dd6de033cf1ffb4e9951b (diff)
vppinfra: add clib_log2_page_sz and format/unformat functions
Type: improvement Change-Id: Ie44dbf9396cfed19dba153810b7bd76ce5377cd4 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/format.h')
-rw-r--r--src/vppinfra/format.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/format.h b/src/vppinfra/format.h
index 678029e2a16..e71c7b347e8 100644
--- a/src/vppinfra/format.h
+++ b/src/vppinfra/format.h
@@ -298,6 +298,12 @@ unformat_function_t unformat_memory_size;
/* Unparse memory size e.g. 100, 100k, 100m, 100g. */
u8 *format_memory_size (u8 * s, va_list * va);
+/* Parse memory page size e.g. 4K, 2M */
+unformat_function_t unformat_log2_page_size;
+
+/* Unparse memory page size e.g. 4K, 2M */
+u8 *format_log2_page_size (u8 * s, va_list * va);
+
/* Format c identifier: e.g. a_name -> "a name". */
u8 *format_c_identifier (u8 * s, va_list * va);