Justin P. Mattock <justinmattock@gmail.com> wrote:That's not a good warning because it's a meaningless string and you're passing the error number to the dev%d. Better would perhaps be: "dev%d: Failed to create physical_node sysfs link: %d\n" Note also that you're only checking the result of one sysfs_create_link(). You should probably check both. Also you're introducing a pair of unnecessary braces as there's only one statement in the if-body. David --
