log message cleanup

This commit is contained in:
Will Woods 2011-06-27 17:54:09 -04:00
parent 3388c1c529
commit e1a0e40ffa

View File

@ -65,7 +65,6 @@ def findkernels(root="/", kdir="boot"):
return kernels return kernels
def generate_module_info(moddir, outfile=None): def generate_module_info(moddir, outfile=None):
logger.info("reading module data in %s", moddir)
def module_desc(mod): def module_desc(mod):
return check_output(["modinfo", "-F", "description", mod]).strip() return check_output(["modinfo", "-F", "description", mod]).strip()
def read_module_set(name): def read_module_set(name):
@ -82,7 +81,6 @@ def generate_module_info(moddir, outfile=None):
modinfo.append(dict(name=name, type=modtype, desc=desc)) modinfo.append(dict(name=name, type=modtype, desc=desc))
out = open(outfile or joinpaths(moddir,"module-info"), "w") out = open(outfile or joinpaths(moddir,"module-info"), "w")
logger.info("writing %s", out.name)
for mod in sorted(modinfo, key=lambda m: m.get('name')): for mod in sorted(modinfo, key=lambda m: m.get('name')):
out.write('{name}\n\t{type}\n\t"{desc:.65}"\n'.format(**mod)) out.write('{name}\n\t{type}\n\t"{desc:.65}"\n'.format(**mod))
@ -206,6 +204,7 @@ class TreeBuilder(object):
for kernel in self.kernels: for kernel in self.kernels:
kver = kernel.version kver = kernel.version
ksyms = joinpaths(inroot, "boot/System.map-%s" % kver) ksyms = joinpaths(inroot, "boot/System.map-%s" % kver)
logger.info("doing depmod and module-info for %s", kver)
check_call(["depmod", "-a", "-F", ksyms, "-b", inroot, kver]) check_call(["depmod", "-a", "-F", ksyms, "-b", inroot, kver])
generate_module_info(joinpaths(inroot, "modules", kver)) generate_module_info(joinpaths(inroot, "modules", kver))