libc: Remove remaining frigg loggers

This commit is contained in:
Alexander van der Grinten 2018-10-14 17:01:13 +02:00
parent 261bd97dd9
commit 4e79fba631
3 changed files with 10 additions and 10 deletions

View file

@ -44,7 +44,7 @@ struct SoftDouble {
SoftDouble(bool negative, Mantissa mantissa, Exp exp)
: negative(negative), mantissa(mantissa), exp(exp) {
// frigg::infoLogger.log() << "(" << (int)negative << ", " << (void *)mantissa
// mlibc::infoLogger.log() << "(" << (int)negative << ", " << (void *)mantissa
// << ", " << exp << ")" << frigg::EndLog();
__ensure(mantissa < (Mantissa(1) << kMantissaBits));
__ensure((exp + kBias) >= 0);
@ -837,7 +837,7 @@ long double sinl(long double x) {
}
double tan(double x) {
frigg::infoLogger() << "mlibc: tan() is not precise" << frigg::endLog;
mlibc::infoLogger() << "mlibc: tan() is not precise" << frg::endlog;
return tanf(x);
}
// Taken from musl. See musl for the license/copyright!
@ -1783,7 +1783,7 @@ long double fminl(long double x, long double y) {
//gnu extension
void sincos(double x, double *sx, double *cx) {
frigg::infoLogger() << "mlibc: sincos() is not precise" << frigg::endLog;
mlibc::infoLogger() << "mlibc: sincos() is not precise" << frg::endlog;
float sxf;
float cxf;
sincosf(x, &sxf, &cxf);

View file

@ -187,7 +187,7 @@ int sprintf(char *__restrict buffer, const char *__restrict format, ...) {
return result;
}
int sscanf(const char *__restrict buffer, const char *__restrict format, ...) {
frigg::infoLogger() << "sscanf(" << buffer << ", " << format << ")" << frigg::endLog;
mlibc::infoLogger() << "sscanf(" << buffer << ", " << format << ")" << frg::endlog;
return EOF;
__ensure(!"Not implemented");
__builtin_unreachable();

View file

@ -1297,9 +1297,9 @@ int sys_ioctl(int fd, unsigned long request, void *arg) {
}
case DRM_IOCTL_SET_CLIENT_CAP: {
auto param = reinterpret_cast<drm_set_client_cap *>(arg);
frigg::infoLogger() << "\e[35mmlibc: DRM_IOCTL_SET_CLIENT_CAP("
mlibc::infoLogger() << "\e[35mmlibc: DRM_IOCTL_SET_CLIENT_CAP("
<< param->capability << ") is not implemented correctly\e[39m"
<< frigg::endLog;
<< frg::endlog;
errno = EINVAL;
return -1;
}
@ -1461,8 +1461,8 @@ int sys_ioctl(int fd, unsigned long request, void *arg) {
return resp.result();
}
case DRM_IOCTL_MODE_GETPLANERESOURCES: {
frigg::infoLogger() << "\e[35mmlibc: DRM_IOCTL_MODE_GETPLANERESOURCES"
" is not implemented correctly\e[39m" << frigg::endLog;
mlibc::infoLogger() << "\e[35mmlibc: DRM_IOCTL_MODE_GETPLANERESOURCES"
" is not implemented correctly\e[39m" << frg::endlog;
errno = EINVAL;
return -1;
}
@ -1841,8 +1841,8 @@ int sys_ioctl(int fd, unsigned long request, void *arg) {
}
case DRM_IOCTL_MODE_OBJ_GETPROPERTIES: {
auto param = reinterpret_cast<drm_mode_obj_get_properties *>(arg);
frigg::infoLogger() << "\e[35mmlibc: DRM_IOCTL_MODE_OBJ_GETPROPERTIES"
" is not implemented correctly\e[39m" << frigg::endLog;
mlibc::infoLogger() << "\e[35mmlibc: DRM_IOCTL_MODE_OBJ_GETPROPERTIES"
" is not implemented correctly\e[39m" << frg::endlog;
param->count_props = 0;
return 0;
}