aboutsummaryrefslogtreecommitdiff
path: root/project/src/wtest.c
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2024-02-17 11:45:01 +0100
committerWiimm <wiimm@wiimm.de>2024-02-17 11:45:01 +0100
commit685554b2c272fdefc23bb1d237c059b52ab5fc58 (patch)
tree9e0e7ff41f688bdc07fdb7869fc0258725197bcf /project/src/wtest.c
parentac9a0b25eaffaa05e5431a8527dab8649ef6504f (diff)
SZS v2.41a
Diffstat (limited to 'project/src/wtest.c')
-rw-r--r--project/src/wtest.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/project/src/wtest.c b/project/src/wtest.c
index 4689cf0..f65fe65 100644
--- a/project/src/wtest.c
+++ b/project/src/wtest.c
@@ -4187,11 +4187,10 @@ static enumError test_test_prefix ( int argc, char ** argv )
continue;
}
- const mkw_prefix_t *key0 = FindPrefix(arg,-1,false);
- const mkw_prefix_t *key1 = FindPrefix(arg,-1,true);
- printf(" %d %d : %10.10s",key0!=0,key1!=0,arg);
- if (key0)
- printf(" => %-8s %s\n",key0->prefix,key0->info);
+ const mkw_prefix_t *pre = GetPrefix(arg,-1);
+ printf(" %d : %-20.20s",pre!=0,arg);
+ if (pre)
+ printf(" => %-8s | %s\n",pre->prefix,pre->info);
else
putchar('\n');
}
@@ -4281,7 +4280,7 @@ static enumError test_coded_version ( int argc, char ** argv )
fw = len;
}
- uint code = GetEncodedVersion();
+ uint code = GetNumericVersion();
printf("\n %-*s %10u %s\n\n",fw+3,"Coded version:",code,DecodeVersion(code));
for ( int i = 1; i < argc; i++ )
@@ -4728,7 +4727,7 @@ lta_file_ref_t ReadFileLTA ( DVDFileInfo *fi, const lta_info_t *info, int slot,
{
if ( lta_cache_slot == slot && lta_cache_par_index == par_index )
{
-PRINT1("Use LTA Cache %d.%d\n",slot,par_index);
+ PRINT1("Use LTA Cache %d.%d\n",slot,par_index);
return lta_cache_data;
}