mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* sysdeps/arm/dl-machine.h: Likewise. * sysdeps/hppa/dl-machine.h: Likewise. * sysdeps/m68k/dl-machine.h: Likewise. * sysdeps/powerpc/dl-machine.h: Likewise. * sysdeps/s390/dl-machine.h: Likewise. * sysdeps/sh/dl-machine.h: Likewise.
This commit is contained in:
@@ -266,9 +266,8 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
|
||||
{
|
||||
/* We cannot write the profiling data so don't do anything. */
|
||||
char buf[400];
|
||||
_dl_sysdep_message (filename, ": cannot open file: ",
|
||||
__strerror_r (errno, buf, sizeof buf),
|
||||
"\n", NULL);
|
||||
_dl_error_printf ("%s: cannot open file: %s\n", filename,
|
||||
__strerror_r (errno, buf, sizeof buf));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -278,9 +277,8 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
|
||||
char buf[400];
|
||||
int errnum = errno;
|
||||
__close (fd);
|
||||
_dl_sysdep_message (filename, ": cannot stat file: ",
|
||||
__strerror_r (errnum, buf, sizeof buf),
|
||||
"\n", NULL);
|
||||
_dl_error_printf ("%s: cannot stat file: %s\n", filename,
|
||||
__strerror_r (errnum, buf, sizeof buf));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -300,9 +298,8 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
|
||||
cannot_create:
|
||||
errnum = errno;
|
||||
__close (fd);
|
||||
_dl_sysdep_message (filename, ": cannot create file: ",
|
||||
__strerror_r (errnum, buf, sizeof buf),
|
||||
"\n", NULL);
|
||||
_dl_error_printf ("%s: cannot create file: %s\n", filename,
|
||||
__strerror_r (errnum, buf, sizeof buf));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -319,9 +316,8 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
|
||||
if (addr != NULL)
|
||||
__munmap ((void *) addr, expected_size);
|
||||
|
||||
_dl_sysdep_message (filename,
|
||||
": file is no correct profile data file for `",
|
||||
_dl_profile, "'\n", NULL);
|
||||
_dl_error_printf ("%s: file is no correct profile data file for `%s'\n",
|
||||
filename, _dl_profile);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -332,9 +328,8 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
|
||||
char buf[400];
|
||||
int errnum = errno;
|
||||
__close (fd);
|
||||
_dl_sysdep_message (filename, ": cannot map file: ",
|
||||
__strerror_r (errnum, buf, sizeof buf),
|
||||
"\n", NULL);
|
||||
_dl_error_printf ("%s: cannot map file: %s\n", filename,
|
||||
__strerror_r (errnum, buf, sizeof buf));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -377,7 +372,7 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
|
||||
if (tos == NULL)
|
||||
{
|
||||
__munmap ((void *) addr, expected_size);
|
||||
_dl_sysdep_fatal ("Out of memory while initializing profiler\n", NULL);
|
||||
_dl_fatal_printf ("Out of memory while initializing profiler\n");
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user