Deleted Added
sdiff udiff text old ( 12212:1ae8dc8fdb97 ) new ( 12213:e0083524df0c )
full compact
1#!/usr/bin/env python2
2
3# Copyright (c) 2013-2014 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 24 unchanged lines hidden (view full) ---

33# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37#
38# Authors: Andreas Hansson
39
40# This script is used to dump protobuf packet traces to ASCII
41# format.
42
43import os
44import protolib
45import subprocess
46import sys
47
48util_dir = os.path.dirname(os.path.realpath(__file__))
49# Make sure the proto definitions are up to date.
50subprocess.check_call(['make', '--quiet', '-C', util_dir, 'packet_pb2.py'])
51import packet_pb2
52
53def main():
54 if len(sys.argv) != 3:
55 print "Usage: ", sys.argv[0], " <protobuf input> <ASCII output>"
56 exit(-1)
57
58 # Open the file in read mode
59 proto_in = protolib.openFileRd(sys.argv[1])
60

--- 56 unchanged lines hidden ---