Put newline before packet info in ofp_packet_out pretty-print output.
authorBen Pfaff <blp@nicira.com>
Tue, 20 May 2008 23:46:15 +0000 (16:46 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 28 May 2008 16:58:22 +0000 (09:58 -0700)
lib/ofp-print.c

index 8579cab..a1e4dc9 100644 (file)
@@ -267,6 +267,7 @@ static void ofp_packet_out(struct ds *string, const void *oh, size_t len,
         if (verbosity > 0 && len > sizeof *opo) {
             char *packet = ofp_packet_to_string(opo->u.data, len - sizeof *opo,
                                                 len - sizeof *opo);
+            ds_put_char(string, '\n');
             ds_put_cstr(string, packet);
             free(packet);
         }