scripts: gen_priv_stacks.py: run through flake8

Follow pep8 style based on flake8 script.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-09-16 14:56:07 -05:00
commit 2e7bdb6be2

View file

@ -6,8 +6,6 @@
import sys
import argparse
import pprint
import os
import struct
from elf_helper import ElfHelper
@ -108,7 +106,8 @@ def main():
max_threads = syms["CONFIG_MAX_THREAD_BYTES"] * 8
objs = eh.find_kobjects(syms)
if eh.get_thread_counter() > max_threads:
thread_counter = eh.get_thread_counter()
if thread_counter > max_threads:
sys.stderr.write("Too many thread objects (%d)\n" % thread_counter)
sys.stderr.write("Increase CONFIG_MAX_THREAD_BYTES to %d\n",
-(-thread_counter // 8))