Fix identation and add log line if fcntl missing