diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-31 19:12:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-31 19:12:01 -0700 |
commit | 9d02e5e1120d36fb2c4284187de99e19d434dc98 (patch) | |
tree | 27c06b7e2e8f0b997b6de431f0e650b2cba68ec3 /stream.c | |
parent | b78c33f2929643c5678668095eeac5b5b096c101 (diff) | |
download | txr-9d02e5e1120d36fb2c4284187de99e19d434dc98.tar.gz txr-9d02e5e1120d36fb2c4284187de99e19d434dc98.tar.bz2 txr-9d02e5e1120d36fb2c4284187de99e19d434dc98.zip |
streams: use ~a for self string.
* stream.c (parse_mode, open_file, open_fileno): Since self
is a string, use ~a to print it, or else quotes
will appear.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1604,7 +1604,7 @@ struct stdio_mode parse_mode(val mode_str, struct stdio_mode m_dfl, val self) { struct stdio_mode m = do_parse_mode(mode_str, m_dfl, self); if (m.malformed) - uw_throwf(file_error_s, lit("~s: invalid mode string ~s"), self, + uw_throwf(file_error_s, lit("~a: invalid mode string ~s"), self, mode_str, nao); return m; } @@ -4261,7 +4261,7 @@ again: return make_gzio_stream(f, -1, path, m.write); #else - uw_ethrowf(file_error_s, lit("~s: not built with zlib support"), + uw_ethrowf(file_error_s, lit("~a: not built with zlib support"), self, nao); #endif } @@ -4303,7 +4303,7 @@ val open_fileno(val fd, val mode_str) return make_gzio_stream(f, fdn, format(nil, lit("fd ~d"), fd, nao), m.write); #else - uw_ethrowf(file_error_s, lit("~s: not built with zlib support"), + uw_ethrowf(file_error_s, lit("~a: not built with zlib support"), self, nao); #endif } |