From c61f99056634119806916d5dfb58505d432e6732 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 19 Dec 2011 11:27:50 -0800 Subject: [PATCH] Fix misspelled Python variable name and typos Typos: - Update pathname in README.txt - Fix missing newlines in header update script. Change-Id: Ib0e053f92a27ff10071b9805fa64e5653ab31b0c --- libc/kernel/README.TXT | 2 +- libc/kernel/tools/clean_header.py | 2 +- libc/kernel/tools/update_all.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libc/kernel/README.TXT b/libc/kernel/README.TXT index 76dfa4dbf..9ff97d6c6 100644 --- a/libc/kernel/README.TXT +++ b/libc/kernel/README.TXT @@ -56,7 +56,7 @@ the tools you can use are: * tools/update_all.py automatically update all clean headers from the content of - 'bionic/kernel/original'. this is the script you're likely going to + 'external/kernel-headers/original'. this is the script you're likely going to run whenever you update the original headers. NOTE: diff --git a/libc/kernel/tools/clean_header.py b/libc/kernel/tools/clean_header.py index 0549fc24e..22e62aa5c 100755 --- a/libc/kernel/tools/clean_header.py +++ b/libc/kernel/tools/clean_header.py @@ -37,7 +37,7 @@ def cleanupFile( path, original_path): src_path = src_path[1:] if len(src_path) == 0: - panic( "oops, internal error, can't extract correct relative path" ) + panic( "oops, internal error, can't extract correct relative path\n" ) # convert into destination path, extracting architecture if needed # and the corresponding list of known static functions diff --git a/libc/kernel/tools/update_all.py b/libc/kernel/tools/update_all.py index 6a730a5f0..badef9204 100755 --- a/libc/kernel/tools/update_all.py +++ b/libc/kernel/tools/update_all.py @@ -37,13 +37,13 @@ if len(optlist) > 0 or len(args) > 1: progdir = find_program_dir() if len(args) == 1: - original_dir = arg[0] + original_dir = args[0] if not os.path.isdir(original_dir): - panic( "Not a directory: %s" % original_dir ) + panic( "Not a directory: %s\n" % original_dir ) else: original_dir = kernel_original_path if not os.path.isdir(original_dir): - panic( "Missing directory, please specify one through command-line: %s" % original_dir ) + panic( "Missing directory, please specify one through command-line: %s\n" % original_dir ) # find all source files in 'original' #