]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: fix a hardcode in check_path_length()
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 6 Apr 2016 09:30:01 +0000 (02:30 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Apr 2016 09:32:42 +0000 (10:32 +0100)
* Fixed:
  410 -> limit

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index d229938c9309962704365e4c87ff98253de831e9..eda0ea9c8a99f6ad9f0a9e6ea605ba2085954912 100644 (file)
@@ -334,7 +334,7 @@ def check_create_long_filename(filepath, pathname):
 
 def check_path_length(filepath, pathname, limit):
     if len(filepath) > limit:
-        return "The length of %s is longer than 410, this would cause unexpected errors, please use a shorter path.\n" % pathname
+        return "The length of %s is longer than %s, this would cause unexpected errors, please use a shorter path.\n" % (pathname, limit)
     return ""
 
 def get_filesystem_id(path):