From f4300e28693edbfbb3f7bc13049829307bbcbbe8 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 26 Oct 2010 11:57:46 -0500 Subject: [PATCH] Bug 606609: Make script to extract protocol/message from msgtype numbers part of m-c. r=bsmedberg a=npotb --- ipc/ipdl/msgtype-components | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 ipc/ipdl/msgtype-components diff --git a/ipc/ipdl/msgtype-components b/ipc/ipdl/msgtype-components new file mode 100755 index 00000000000..91dcf9638c6 --- /dev/null +++ b/ipc/ipdl/msgtype-components @@ -0,0 +1,9 @@ +#!/usr/bin/python + +import sys + +msgid = int(sys.argv[1]) +protocol = (msgid >> 16) +msg = (msgid - (protocol << 16)) + +print 'protocol', protocol, 'message', msg