diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-25 17:46:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-25 18:04:04 +0100 |
commit | 693eb9a2d42d71445dad273a76e2470199d1dc5a (patch) | |
tree | 9d43271a1cc9c91ff8660eda7720ab755a427a84 /src/libsystemd-bus/bus-dump.c | |
parent | 80a33f113bbdadf4fc7ffec7fed026fde59d232b (diff) |
bus: rename message "serial" to "cookie"
Even if the lower-leveld dbus1 protocol calls it "serial", let's expose
the word "cookie" for this instead, as this is what kdbus uses and since
it doesn't imply monotonicity the same way "serial" does.
Diffstat (limited to 'src/libsystemd-bus/bus-dump.c')
-rw-r--r-- | src/libsystemd-bus/bus-dump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-bus/bus-dump.c b/src/libsystemd-bus/bus-dump.c index 7b614792ca..df7cf6893a 100644 --- a/src/libsystemd-bus/bus-dump.c +++ b/src/libsystemd-bus/bus-dump.c @@ -67,13 +67,13 @@ int bus_message_dump(sd_bus_message *m, FILE *f, bool with_header) { /* Display synthetic message serial number in a more readable * format than (uint32_t) -1 */ - if (BUS_MESSAGE_SERIAL(m) == 0xFFFFFFFFULL) - fprintf(f, " Serial=-1"); + if (BUS_MESSAGE_COOKIE(m) == 0xFFFFFFFFULL) + fprintf(f, " Cookie=-1"); else - fprintf(f, " Serial=%u", BUS_MESSAGE_SERIAL(m)); + fprintf(f, " Cookie=%lu", (unsigned long) BUS_MESSAGE_COOKIE(m)); - if (m->reply_serial != 0) - fprintf(f, " ReplySerial=%u", m->reply_serial); + if (m->reply_cookie != 0) + fprintf(f, " ReplyCookie=%lu", (unsigned long) m->reply_cookie); fputs("\n", f); |