1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00
Commit Graph

36 Commits

Author SHA1 Message Date
elbandi
7f7557b59b Fix VERSION redefine warnings 2016-04-01 01:40:55 +02:00
ystarnaud
4ba8a68043 Merged develop branch with master +updates
Moved the develop code to master. Moving forward all updates will be
done on master unless it's work on a major feature.

This update contains all previous develop code as well as a few new ones
that weren't pushed yet:

* Added neoscrypt compatibility for xintensity/rawintensity
* Neoscrypt now uses correct TC if not specified or set to 0
* Reworked the application of pool settings on algorithm switch which
should resolve TC/Intensity changes between algos such as X11 and
neoscrypt
2014-12-03 10:09:55 -05:00
ystarnaud
8a6168fa4b Fix for UI/API intensity changes
The API and UI functions to change intensity would update the gpu
settings directly without updating the config option strings. This
resulted in the intensity updates not saving in config files. This
update should resolve that problem.

Also added API functions to change xintensity and rawintensity.
2014-11-19 12:21:11 +01:00
Jan Berdajs
363f52df47 Write to both stderr and console within same console lock "session"
From 7dd230cd8f
2014-07-06 01:30:50 +02:00
Jan Berdajs
eb6f47e503 Add debug-log setting to log everything when stderr is redirected to file
Based on code from BFGMiner
2014-07-06 01:07:32 +02:00
Jan Berdajs
485ec9ac88 rename poorly named variable 2014-07-06 00:03:11 +02:00
troky
24fa44e12b Make sure log string is null-terminated. 2014-06-11 00:11:11 +02:00
troky
6971ce6fe0 logging spaces/indentation 2014-06-10 17:13:54 +02:00
troky
9f6bf16196 Refactored logging. Increased default log buffer size. 2014-06-10 16:36:53 +02:00
Noel Maersk
cabb02f5d4 log: do not show pool difficulty changes on non-current pool.
Keep log spam down when using a lot of vardiff pools, or if a p2pool is
a fallback.
2014-04-02 23:35:03 +03:00
unknown
feac311305 VS2010 build: Converted applog() macro to function. 2014-02-07 21:44:23 +02:00
Noel Maersk
3ade514b94 log: Do not pad log string with a space. 2014-01-11 17:33:00 +02:00
Noel Maersk
f6f950273b log: Change log_dateformat to log_show_date and make it bool. 2014-01-11 17:32:57 +02:00
Martin Danielsen
ba1c47781f log: Added a switch to the log date and time format.
It is possible to switch back to full date and time on each log line with "--log-dateformat 1". The short time-only format is default with the value of 0.

Log with short time-only format looks like:
 [23:59:59] Accepted 389c47d1 Diff 1.16K/512 GPU 0 pool 0
 [00:00:16] Log date is now 2013-12-22
 [00:00:16] Stratum from pool 0 detected new block
 [00:00:33] Accepted 7a4950a4 Diff 536/512 GPU 0 pool 0
2014-01-11 17:32:39 +02:00
Con Kolivas
8e9f32a81b Add a forcelog variant of applog which invalidates any console lock to force output. 2013-10-18 23:30:05 +11:00
Kano
5fb5dd0bd6 logging - size check sprintf 2013-07-06 21:04:32 +10:00
Kano
e2b4d4908d logging remove extra added <LF> 2013-06-15 22:08:47 +10:00
Kano
7eba963477 remove varargs from logging/quit/in general as much as possible 2013-06-15 22:03:56 +10:00
Kano
8f08a327ca applog - force type checking 2013-05-02 22:50:25 +10:00
Con Kolivas
8971c56b8d va_copy is meant to be matched by a va_end in log_generic. 2013-04-29 00:47:58 +10:00
Con Kolivas
93901011cf Use cgtime in logging.c 2013-04-21 19:15:34 +10:00
James Z.M. Gao
c9ae715019 Compile CPU mining for win32 and win64 2013-04-04 22:59:10 +08:00
Con Kolivas
c113534feb Begin support for mingw stratum build.
Conflicts:
	configure.ac
2012-10-04 17:52:35 +10:00
Luke Dashjr
da4ff2bde1 Bugfix: Use a mutex to control non-curses output
Without this, there is no guarantee writes won't overlap (and it happens quite a bit on Windows with the bitforce driver)
2012-07-23 20:29:06 +00:00
Luke Dashjr
d98e561a0a Simplify code to a single vprintf path for curses-less printing 2012-07-23 20:29:02 +00:00
Luke Dashjr
80593c47fc Move opt_quiet check to my_log_curses, so it works for curses-less builds 2012-07-23 20:28:57 +00:00
Luke Dashjr
d2195bd04e Use log_generic for vapplog to cut down on code duplication 2012-07-23 20:28:53 +00:00
Luke Dashjr
1097aefbad Add space to log output now that there is more screen real estate available. 2012-07-23 20:28:48 +00:00
Luke Dashjr
a1edc7dbcb Bugfix: Fix build without curses but with OpenCL 2012-07-15 05:37:49 +00:00
Con Kolivas
4da6758f43 Add space to log output now that there is more screen real estate available. 2012-04-28 00:34:35 +10:00
Luke Dashjr
ed8382c88d Make curses TUI support optional at compile-time. 2012-03-12 18:38:45 -04:00
Con Kolivas
d1cddf8bad Update licensing to GPL V3. 2012-02-21 22:23:07 +11:00
Con Kolivas
810ad04578 More copyright updates. 2012-02-18 23:16:08 +11:00
Con Kolivas
111238489f Fix missing field initialisers warnings. 2012-02-12 17:53:50 +11:00
Con Kolivas
be8ad57962 Add missing define in logging.c for isatty() 2012-02-12 11:41:58 +11:00
zefir
e0fec35751 modularized logging, support for priority based logging
Functions related to logging are extracted into dedicated source files
for better maintainability.

The existing low-level logging API is extended with a generalized scheme
providing log functions log_{error, warning, notice, info, debug} that
log messages based on a global opt_log_level.

opt_log_level for now is set to LOG_NOTICE and might be modified via
command line options or config files in future releases.
2012-02-11 20:26:25 +01:00