summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-06-18 02:43:20 +0200
committerHaru <haru@dotalux.com>2015-06-19 13:01:03 +0200
commit4faa45ac7ed47d8a51068f8323405f4f3df80edb (patch)
treed64fb2c317d352758c2d1e07a236468f70e4d36c /tools/HPMHookGen
parente9223da7d71f28a3b803e2283387960aeeb6d77a (diff)
downloadhercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.tar.gz
hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.tar.bz2
hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.tar.xz
hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.zip
Improved info/error messages during plugin loading
- Each loaded plugin will now show a status message - If a plugin loads because of a missing symbol, an error message will be displayed, mentioning the name of the missing symbol. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index f97eefb84..9c0660300 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -424,7 +424,7 @@ EOF
EOF
$idx += 2;
- $maxlen = length($key."->".$if->{name}) if( length($key."->".$if->{name}) > $maxlen )
+ $maxlen = length($key."->".$if->{name}) if( length($key."->".$if->{name}) > $maxlen );
}
}
print FH <<"EOF";
@@ -469,7 +469,7 @@ EOF
foreach my $key (@$keysref) {
print FH <<"EOF";
-if( !($key = GET_SYMBOL("$exportsymbols{$key}") ) ) return false;
+if( !($key = GET_SYMBOL("$exportsymbols{$key}") ) ) return "$exportsymbols{$key}";
EOF
}
close FH;