[PATCH] fdi cache regen logic error

Doug Goldstein cardoe at gentoo.org
Tue Apr 10 12:13:15 PDT 2007


There's a logic error in the check of the return from fdi cache regen.
Basically if exit_type wasn't HALD_RUN_SUCCESS (which is defined as 0)
or return_code isn't 0 or 2, then an error occurred. Based on the order
users would have the following in their logs.

12:54:13.827 [I] mmap_cache.c:137: In regen_cache_cb exit_type=0, return_code=0
12:54:13.827 [E] mmap_cache.c:190: fdi cache regeneration failed!

The following patch corrects the issue and should be applied to 0.5.9 branch as well.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04_cache_regen_return_fix.patch
Type: text/x-patch
Size: 662 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070410/5ef69441/04_cache_regen_return_fix.bin


More information about the hal mailing list