summaryrefslogtreecommitdiffstats
path: root/svm/svm.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2015-12-18 10:26:56 +0100
committerDamjan Marion <damarion@cisco.com>2015-12-18 13:31:56 +0100
commit2c29d75021d684559146e656aac85f0c14ffb5ab (patch)
treef170a34ab269e94ab8c98ff77cd591e1f63157eb /svm/svm.c
parent5f1fd813c2773870ca92510c4e49a18810e9a4c8 (diff)
Fix warnings/errors reported by clang
Change-Id: Ifb2de64347526e3218e22067452f249ff878fd32 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'svm/svm.c')
-rw-r--r--svm/svm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svm/svm.c b/svm/svm.c
index 4d45b29785d..ab749137424 100644
--- a/svm/svm.c
+++ b/svm/svm.c
@@ -117,9 +117,9 @@ static u8 * format_svm_size (u8 * s, va_list * args)
{
uword size = va_arg (*args, uword);
- if (size >= (1>>20)) {
+ if (size >= (1<<20)) {
s = format (s, "(%d mb)", size >> 20);
- } else if (size >= (1>>10)) {
+ } else if (size >= (1<<10)) {
s = format (s, "(%d kb)", size >> 10);
} else {
s = format (s, "(%d bytes)", size);