2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-02 23:35:27 +00:00

memory: Avoid an empty log message if there's nothing to log.

I spotted this in a case where I ran ovsdb-server, by hand, on an empty
database.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2013-04-03 05:52:12 -07:00
parent 778ea0a463
commit b9de408768

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012 Nicira, Inc.
* Copyright (c) 2012, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -137,7 +137,7 @@ memory_report(const struct simap *usage)
ds_init(&s);
compose_report(usage, &s);
if (want_report) {
if (want_report && s.length) {
VLOG_INFO("%s", ds_cstr(&s));
want_report = false;
}