diff --git a/otherarch/llama-util.h b/otherarch/llama-util.h index 68dd42032..0eb55e79a 100644 --- a/otherarch/llama-util.h +++ b/otherarch/llama-util.h @@ -223,7 +223,7 @@ struct llama_v3_mmap { #endif addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0); if (addr == MAP_FAILED) { - throw std::runtime_error(format("mmap failed: %s", strerror(errno))); + throw std::runtime_error(format_old("mmap failed: %s", strerror(errno))); } if (prefetch > 0) { diff --git a/otherarch/llama_v2-util.h b/otherarch/llama_v2-util.h index 862c2abb9..41b6df386 100644 --- a/otherarch/llama_v2-util.h +++ b/otherarch/llama_v2-util.h @@ -171,7 +171,7 @@ struct llama_v2_mmap { #endif addr = mmap(NULL, file->size, PROT_READ, flags, fd, 0); if (addr == MAP_FAILED) { - throw std::runtime_error(format("mmap failed: %s", strerror(errno))); + throw std::runtime_error(format_old("mmap failed: %s", strerror(errno))); } if (prefetch) {