Hi Stuart, On 20-11-10 09:37:35, Stuart Hayes wrote: [...] > + > + scnprintf(buf, PAGE_SIZE, "%#x\n", dsm_output->state); > + > + ACPI_FREE(out_obj); > + > + return strlen(buf) > 0 ? strlen(buf) : -EIO; Question to you - since scnprintf() returns the number of characters written into a buffer, maybe it be possible to use this return value instead of using strlen(), what do you think? Krzysztof