X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fd.c;h=556f3e96c073b12de38496c595042616a96bafa0;hp=1116f9e880b8013207fdd58e8d7a06808e0e48db;hb=6ce1f648d6e34e49472ce938c83e5bf8e65cd429;hpb=6504031d788bfd8417f67f24ae9eeeed5dabe302 diff --git a/fd.c b/fd.c index 1116f9e8..556f3e96 100644 --- a/fd.c +++ b/fd.c @@ -1,19 +1,7 @@ /* * Copyright (C) 2006-2007 Andre Noll * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file fd.c helper functions for file descriptor handling */ @@ -163,7 +151,9 @@ void *para_mmap(size_t length, int prot, int flags, int fd, off_t offset) void *ret = mmap(NULL, length, prot, flags, fd, offset); if (ret != MAP_FAILED) return ret; - PARA_EMERG_LOG("mmap failed: %s", strerror(errno)); + PARA_EMERG_LOG("mmap failed: %s\n", strerror(errno)); + PARA_EMERG_LOG("length: %zu, flags: %d, fd: %d, offset: %zu\n", + length, flags, fd, (size_t)offset); exit(EXIT_FAILURE); }