]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scripts/bloat-o-meter: fix python3 syntax error
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Thu, 14 Jan 2016 23:16:53 +0000 (15:16 -0800)
committerJiri Slaby <jslaby@suse.cz>
Thu, 25 Feb 2016 09:49:14 +0000 (10:49 +0100)
commit72ecf7ea4ad85bc9b0ce90f34c8c08f628d6be8b
treeb5860955979fa9d50b7462037588918284675b77
parentaab71806c9415232202c59aaf1083c285a1658a3
scripts/bloat-o-meter: fix python3 syntax error

commit 72214a24a7677d4c7501eecc9517ed681b5f2db2 upstream.

In Python3+ print is a function so the old syntax is not correct
anymore:

  $ ./scripts/bloat-o-meter vmlinux.o vmlinux.o.old
    File "./scripts/bloat-o-meter", line 61
      print "add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \
                                                                     ^
  SyntaxError: invalid syntax

Fix by calling print as a function.

Tested on python 2.7.11, 3.5.1

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
scripts/bloat-o-meter